Is there any difference between print 3 and print '3' in Python ?

Kiuhnm kiuhnm03.4t.yahoo.it
Mon Mar 26 08:07:10 EDT 2012


On 3/26/2012 13:45, redstone-cold at 163.com wrote:
> I know the print statement produces the same result when both of
> these two instructions are executed ,I just want to know Is there any
> difference between print 3 and print '3' in Python ?

The former prints a number while the latter a string.

Kiuhnm



More information about the Python-list mailing list