I'm sorry if this is confusing, I'm new to Python and this site and could use some help. I hope I'm clear with what I'm trying to get help with. When I try to get both of my user inputs printed, it gives me an error after I enter the food name. What am I doing wrong?
foodname=input('please enter food name.') # I ask the user for the name of their food
foodcost=input('please enter food cost.') # I ask for the cost of the same food
print foodname, foodcost #I print both of the given inputs
Here's the error message:
Traceback (most recent call last):
File "C:/Python27/test.py", line 1, in <module> foodname=input('please enter food name.')
File "<string>", line 1, in <module> NameError: name 'cheese' is not defined >>>