Long Integers with Underscore
Disclaimer: This post has been translated to English using a machine translation model. Please, let me know if you find any mistakes.
If we have a very long integer, it may be hard to read it
num = 1000000000000print(num)
1000000000000
But Python allows us to use underscores to separate the digits and make it more readable
num_ = 1_000_000_000_000print(num_)
1000000000000
Let's check that both numbers are equal
num == num_
True