Could someone explain me something!

Ole Jensen ole_jensen at dbmail.dk
Sat Dec 28 13:19:44 EST 2002


I am indeed just getting started with python, and was just toying around
when I found something I didn't understand

(its very simple so please don't laugh)

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

but when you write it into a .py file the result differs to just this:
5+5

why is this, are there a logical explanation for it?





More information about the Python-list mailing list