[Tutor] Simple PassGen
alan.gauld at btinternet.com
Tue Feb 10 01:45:01 CET 2009
"Marc Tompkins" <marc.tompkins at gmail.com> wrote
> Don't forget - the "print" statement is going away in 3.0, and you
> should get into the habit of using the print() function instead for
> code. IIRC, print() does NOT support suppressing the newline,
>From the v3 Whats New document:
Old: print x, # Trailing comma suppresses newline
New: print(x, end=" ") # Appends a space instead of a newline
Presumably you could use "" instead of " " to eliminate the space....
>>> for n in range(4):
... print(n, end="")
Yes, it does...
My first answer on a Python v3 issue! :-)
More information about the Tutor