I’m reading a book on beginner’s python programming…can someone tell me why this simple program isn’t working?
me = {
"height": "6",
"fav_color": "red",
"fav_author": "Orwell"
}
answer = input("Type height, fav_color or fav_author")
if answer in me:
result = me[answer]
print(result)
What am I missing here?