long in python

Solutions on MaxInterview for long in python by the best coders in the world

showing results for - "long in python"
Camila
05 Apr 2019
1"""
2longs don't exist in "recent" versions of python. The "int" class will always
3fit whichever number you want. The example below illustrates this
4"""
5
6my_int = 1
7for i in range (100):
8    my_int *= 2
9    print (my_int, type(my_int))
10    # last iteration prints "1267650600228229401496703205376 <class 'int'>"
Lia
14 Feb 2016
1# long = int in python 3