Python Integer Trick ?? #python #coding #programming

preview_player
Показать описание
#python #coding #programming
The Python code above multiplies two numbers, number1 and number2, and prints the product with commas as a thousands separator.
The value of number1 is 2,000,000,000 and the value of number2 is 5,000.
Multiplying number1 and number2 gives a product of 10,000,000,000,000 (10 trillion).
Using the f-string formatting with the : and , characters formats the output to include commas as a thousands separator.
So the program takes two numbers, multiplies them together to get an even bigger number, and then prints that number with commas so we can read it more easily.
Рекомендации по теме