You are looking at a literal representation of Python number that just indicates that it is a python long integer. This is normal. You do not need to worry about it L
If you need to print such a number, L usually will not.
What happens is that the Python interpreter prints the result of repr() in all the return values ββof the expressions if they do not return None to show you what the expression is. Use print if you want to see the result of a string:
>>> sum(range(49999951,50000000)) 2449998775L >>> print sum(range(49999951,50000000)) 2449998775
source share