[Tutor] How do I display a changing thing in text?

Nathan Pinno falcon3166 at hotmail.com
Tue Nov 15 04:55:53 CET 2005

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:hugonz-lists at h-lab.net] 
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,


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 at python.org
> http://mail.python.org/mailman/listinfo/tutor

More information about the Tutor mailing list