Re: Python input function not working in 2.7 version

2012-10-24 Thread Chris Angelico
On Wed, Oct 24, 2012 at 9:37 PM, Morten Engvoldsen wrote: > I am facing issue with input() of Python 2.7. When i run the program it > doesn't display any line to take user input . Below is the code: > > But the above print function doesn't display the out put in same way. I am > new to Python and

Python input function not working in 2.7 version

2012-10-24 Thread Morten Engvoldsen
Hi, I am facing issue with input() of Python 2.7. When i run the program it doesn't display any line to take user input . Below is the code: def user_input() fat_grams = input("How many grams of fat are in one serving? ") total_calories = input("How many total calories are in one serving? ")