[Tutor] Simple PassGen

Lie Ryan lie.1296 at gmail.com
Tue Feb 10 16:15:01 CET 2009


On Tue, 10 Feb 2009 09:43:18 -0500, python wrote:

> Kent,
> 
>> Except they are not equivalent when you want to print more than one
>> thing. ...
>> Python 2.6:
>> In [1]: print(3, 4)
>> (3, 4)
> 
> I'm running Python 2.6.1 (32-bit) on Windows XP.
> 
> I don't get the tuple-like output that you get.
> 
> Here's what I get:
> 
>>>> print( 3, 4 )
> 3 4

Are you sure it isn't python 3.x you're playing with? The reason why 
simple print function "works" in python 2.x is because of a syntactical 
coincidence, it is still a 100% statement. 



More information about the Tutor mailing list