+ 2
Is there any long int in Python3?
when I tried something like 17,8,4,3,2 It shows max value is 8 rather than 17. why it's not predicting more than 10? https://code.sololearn.com/ctty6r9zo4DH/?ref=app
6 Respuestas
- 1
Now its working fine....I just increased my limit😂
+ 5
Python 3 switches to BigNum automatically once the number exceeds sys.maxsize
+ 4
Ok, well... the problem you had was comparing strings:
z = [x for x in input('\n'+": ").split(',')]
"17" < "8"
"79" < "8"
"80" > "8"
z = [int(x) for x in input('\n'+": ").split(',')]
...works correctly
+ 2
print(2**1024) # Will give you about 8 lines of numbers (full precision)
As for your program... I've been trying to find someone;s question for a code I just published and it vanished... so I'll look at yours :)
+ 2
Fyi,
79,8,4,3,2 -> doesn't work
80,8,4,3,2 -> works
+ 1
thnq @kirk , bt when I tried, Its not :(