[Tutor] What does the L at the end of a number means?

George Wahid geoterium at gmail.com
Sun Mar 1 02:43:25 CET 2009


it means that it's type is "long". writing an expression makes python
return its value, so writing 2**1000 will return a number that ends
with L to show that it's a long integer. but writing "print 2**1000"
will print the number without the L. I don't know if there is a way to
disable this feature, but it's not present in python 3.0.


More information about the Tutor mailing list