-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,317
  • 4
  • 15
  • 36
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
  • 1,810
  • 1
  • 3
  • 17