A cool trick with big numbers in Python

Опубликовано: 05 Апрель 2026
на канале: CyberTodd
849
20

Read me this number - 928128417172
Sure, you can take a while and tell me the number, but you have a great option in Python.
You can divide numbers, into groups of 3, or whatever group you choose, and add an underscore between numbers. Python will be alright with this.

Example:

a = 928_128_417_172
b = 1124_24_1

print(a + b)

Output:
928129541413

-------------------------Subscribe----------------------------
• If you like to see a variety of fun and interactive projects written in Python
• If you love ☕ and 🐶 WAIT! - Yeah! Definitely, coffee and dogs!
-----------------------------------------------------------------------

-------------------------Socials----------------------------
• Twitter:   / iftodd1  
• Facebook:   / iftodd  
• Instagram:   / if_todd  
------------------------------------------------------------------

-------------------------Support----------------------------
You can support me here:   / if_todd  
--------------------------------------------------------------------

#bignumbers #python
A cool trick with big numbers in Python #shorts