Hugo and all, So in order to write what I wanted the correct code would be: "Computer = %1.0d Player = %1.0d" (a,b)
Am I correct or is this wrong? Nathan Pinno -----Original Message----- From: Hugo González Monteverde [mailto:[EMAIL PROTECTED] Sent: November 14, 2005 8:27 PM To: Nathan Pinno Cc: Tutor mailing list Subject: Re: [Tutor] How do I display a changing thing in text? Hi Nathan, Take a look at string interpolation in the tutorial. I don't know what method you're following for learning Python, but I've found the 'official' tutorial a great resource, even when you already know Python, http://docs.python.org/tut/node9.html#SECTION009100000000000000000 Nathan Pinno wrote: > How do I display a changing thing (i.e.. the score of the game) in text? > I think it has something to do with this key: %, but I forget how to > do it. Can someone show me how to do it again? > > Thanks, > Nathan Pinno > > > ---------------------------------------------------------------------- > -- > > _______________________________________________ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor