Basic Data Types in Python: A Quick Exploration
In Python, you can use underscores (_
) to make large integer literals more readable.
Write a Python statement that assigns the integer value one million to a variable
named large_number
using underscores to separate groups of digits.
Think of how you’d write one million as a number, and then use underscores as thousands separators.
Sorry! There has been an error processing your answer. Please try again.