-2

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?

deadshot
  • 8,881
  • 4
  • 20
  • 39
Bhavya K
  • 11
  • 2

1 Answers1

0

You can check with the sys module of the standard library.

Max int size;

>>> sys.maxint
9223372036854775807

Min int size;

>>> -sys.maxint - 1
-9223372036854775808
Sy Ker
  • 2,047
  • 1
  • 4
  • 20