#Python #Integer #Trick #python #coding #programming
Did you know that in Python if you have a really long integer like this you can actually add underscores in between to make it a little more readable and you can actually run operations on this because python recognizes these as just regular integers we’ll do num1 times num2 won’t print our answer
And there we go but our answer is unreadable but we can actually fix that in the print statement we’ll add an F string and we’ll do answer colon comma and it will print our answer with commas in between could do the same with underscores
0 Comments