I can't seem to comprehend the unusual behaviour here:
>>> 2_3_3_2
2332
>>> int("2_3_3_2")
2332
Why it doesn't throw an error in both the cases?
I can't seem to comprehend the unusual behaviour here:
>>> 2_3_3_2
2332
>>> int("2_3_3_2")
2332
Why it doesn't throw an error in both the cases?
The use of underscores helps programmers read more easily large numbers https://www.python.org/dev/peps/pep-0515/.