Guys I'm a beginner and I'm trying (slightly failing) to teach myself programming and writing code so your help is really appreciated
favorite_foods = {'Armon' : 'wings',
'Dad' : 'kabob',
'Joe' : 'chinese',
'mom' : 'veggies',
'Das' : 'addas_polo',
'Rudy' : 'free_food',
'Nick' : 'hotnspicy',
'layla' : 'fries',
'Shaun' : 'sugar',
'Zareen' : 'cookie',
'Elahe' : 'hotdogs'}
print(favorite_foods)
print "Whose favorite food do you want to know"
person = raw_input()
fav = (favorite_foods[person])
print "%r favorite food is %s" (person, fav)
I keep getting the error:
TypeError: 'str' object is not callable.
Can you guys tell me whats wrong with my code and how to, for beginners, know what to fix?
Thanks