Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

keys function in python

'''we define a dictionary store which tells us the inventory name and
   the amount of inventory saved in stock'''
store = {"Salt":230,"Flour":540,"Oil":150,"Sugar":210,"Juice":100}
'''the keys function returns us a list of the set keys so we can use them
   to our will'''
keys = store.keys()
print(keys)
 
PREVIOUS NEXT
Tagged: #keys #function #python
ADD COMMENT
Topic
Name
2+3 =