[Tutor] paper scissors

R. Alan Monroe amonroe at columbus.rr.com
Sat Sep 24 07:56:33 CEST 2011


>> There are 2 things I don't understand.
>> 1. the %s
>> 2. the (wins,loses)


Did you ever play Mad Libs when you were a kid?
http://en.wikipedia.org/wiki/Madlibs

Same concept. The %s in Python is just like the blank spaces in a Mad
Lib game. The items in parentheses after a percent sign are the
variables that "fill in the blanks".

Alan



More information about the Tutor mailing list