Python inconsistent error when comparing two very large numbers
--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Hypnotic Orient Looping
--
Chapters
00:00 Python Inconsistent Error When Comparing Two Very Large Numbers
01:52 Accepted Answer Score 7
02:22 Thank you
--
Full question
https://stackoverflow.com/questions/4273...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#python
#avk47
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Hypnotic Orient Looping
--
Chapters
00:00 Python Inconsistent Error When Comparing Two Very Large Numbers
01:52 Accepted Answer Score 7
02:22 Thank you
--
Full question
https://stackoverflow.com/questions/4273...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#python
#avk47
ACCEPTED ANSWER
Score 7
The issue is with your format calls. You're using {0} twice, which means you get the first positional argument repeated twice in the output text. The integer conversion of response is never printed.
To fix the reporting (not whatever issue is causing the mismatched data), you should either use {0} and {1} once each, or leave out the numbers completely (Python will automatically use {0} for the first {} and {1} for the second, etc.