0

I need to create lists out of dictionary keys. Something like this:

dictionary = {"City": "New York", "Population": "idk", "Location": "America"}

for keys in dictionary:
    keys # I need to convert key string to list for base of pandas

I can not write it as list = [] because script is iterating through web and loading different keys.

Would you guys help me, please?

areedy
  • 117
  • 4

0 Answers0