Could someone explain me something!

Dan Bishop danb_83 at yahoo.com
Sat Dec 28 19:17:46 EST 2002


Peter Hansen <peter at engcorp.com> wrote in message news:<3E0DFF18.F50706E7 at engcorp.com>...
> Ole Jensen wrote:
> > 
> > when typed this into the python shell:
> > print "5+5 =";5+5
> > 
> > the result becomes:
> > 5+5 =
> > 10
> > 
> > so I am thinking that if you use a [,] you get a spacing and if you use a
> > [;] you get a line break
> 
> Not quite.
> [SNIP]
> remembering something from another language and applying it improperly
> to Python, using a semicolon in a print statement like that...

He's probably a former BASIC user.  In that language, the above
statement would print "5+5 = 10".



More information about the Python-list mailing list