Python Forum

Full Version: what does this expression yield?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
what does this expression yield? 3-(len(repr(9223372036854775808))-19)
3
why?
The (top level) version of Python you are using.
Funny

why is that?
Because python 2 had an additional integer type, long.
The representation of such a number is 9223372036854775808L.