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

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to