Python Forum
Python Forum
>
Forum & Off Topic
>
Bar
> what does this expression yield?
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.
Skaperen
Oct-07-2018, 07:49 PM
what does this expression yield?
3-(len(repr(9223372036854775808))-19)
buran
Oct-07-2018, 07:55 PM
3
why?
ichabod801
Oct-08-2018, 12:55 AM
The (top level) version of Python you are using.
wavic
Oct-13-2018, 08:35 AM
Funny
why is that?
stranac
Oct-13-2018, 02:09 PM
Because python 2 had an additional integer type,
long
.
The representation of such a number is
9223372036854775808L
.
Python Forum
>
Forum & Off Topic
>
Bar
> what does this expression yield?