Somebody plz help me with this code!(I am creating my own)


#1

this is my code!
what i am trying to do is I want print menu and its price( which is key value) if it is match with input value!
I have no idea for the for loop!
can you please help me???

coffee = {
'americano':'3',
'vanillalatte':'5',
'moca':'6',
}
tea = {'icetea':'4',
'greentea':'5',
'minttea':'7'
}

cafe= [coffee, tea]
print ""
print cafe

order = []
order = raw_input("what would you like to drink?: ")

for i in cafe:
if i == order:
print i
break
else:
print "we dont have that menu"


#2

its hard my fans
:grinning:


#3

To print the key of a dict do the following.

for key, value in dict_item:
    print(key, value)