[Tutor] Help with "Guess the number" script

Alan Gauld alan.gauld at btinternet.com
Sat Mar 1 18:29:46 CET 2014


On 01/03/14 17:16, Alan Gauld wrote:
>
> Scott W Dunning <swdunning at cox.net> writes:
>
>> def get_guess(guess_number):
>>      print "(",guess_number,")""Plese enter a guess:"
>
> Aren't you missing a comma before the last string?
>
I just realized it will work because Python auto joins adjacent
string literals. But in this case you should probably just
remove both quotes and make it more readable.

-- 
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