myDict = {"1" : "Gorilla", "2" : "Place", "3" : "Place to learn"}
So, I want to print out a dictionary. But I want to do it like it looks like an actual list of things. I can’t just do print myDict, as it will leave all the ugly stuff in. I want the output to look like
> 1234
So what do I do? I haven’t found a post meeting what I want. Thanks in advance.
>Solution :
print("".join(myDict.keys())