Jake J
0
Q:

how to pull keys from a dictionary and start a new dictionary

# Python program to get  
# dictionary keys as list 
  
def getList(dict): 
    return dict.keys() 
      
# Driver program 
dict = {1:'Geeks', 2:'for', 3:'geeks'} 
print(getList(dict)) 
2

New to Communities?

Join the community