What will be the maximum counting integer in an infinite While loop
count = 0
while True:
c += 1
print(c)
Is it int.maxsize()
for Python3?
What will be the maximum counting integer in an infinite While loop
count = 0
while True:
c += 1
print(c)
Is it int.maxsize()
for Python3?
You can check with the sys
module of the standard library.
Max int
size;
>>> sys.maxint
9223372036854775807
Min int
size;
>>> -sys.maxint - 1
-9223372036854775808