[Tutor] Beginning Python 3.4.0 Programmer:Stephen Mik: Cannot get input variable to make While Loop conditional to work

Alan Gauld alan.gauld at btinternet.com
Tue Apr 22 10:03:46 CEST 2014


On 22/04/14 01:18, Alan Gauld wrote:

> input takes as an argument a prompt string and returns the value
> input by the user so your usage should look like:
>
> smv_grandVariable("Enter a 1 to play or 0 to exit:")

Whoops, something went badly wrong in an edit there.
It should read:

smv_grandVariable = input("Enter a 1 to play or 0 to exit:")

apologies for that.

-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.flickr.com/photos/alangauldphotos



More information about the Tutor mailing list