Re: String Format Error.

2008-12-23 Thread Paulo Repreza
Thank You! On Tue, Dec 23, 2008 at 3:49 AM, Steve Holden wrote: > Chris Rebert wrote: > > On Mon, Dec 22, 2008 at 10:19 PM, Paulo Repreza > wrote: > >> Hi, > >> > >> I'm a newbie with python and I recently bought Beginning with Python > (Which > >> is a book I recommend) but the problem that I

Re: String Format Error.

2008-12-23 Thread Steve Holden
Chris Rebert wrote: > On Mon, Dec 22, 2008 at 10:19 PM, Paulo Repreza wrote: >> Hi, >> >> I'm a newbie with python and I recently bought Beginning with Python (Which >> is a book I recommend) but the problem that I'm facing it's the following: >> >> This is the code: >> >> #!/usr/bin/python2.5 >>

Re: String Format Error.

2008-12-22 Thread Chris Rebert
On Mon, Dec 22, 2008 at 10:19 PM, Paulo Repreza wrote: > Hi, > > I'm a newbie with python and I recently bought Beginning with Python (Which > is a book I recommend) but the problem that I'm facing it's the following: > > This is the code: > > #!/usr/bin/python2.5 > # Filename: str_format.py > > a

String Format Error.

2008-12-22 Thread Paulo Repreza
Hi, I'm a newbie with python and I recently bought Beginning with Python (Which is a book I recommend) but the problem that I'm facing it's the following: *This is the code: * #!/usr/bin/python2.5 # Filename: str_format.py age = 25 name = 'foobar' print('{0} is {1} years old'.format(name, age))