Basic Data Types in Python: A Quick Exploration

0%

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.

Error: Unable to initialize Python code execution.

It looks like something is interfering with the coding environment. This can sometimes happen due to browser extensions or strict privacy settings.

To fix this issue, try the following:

If the problem persists, you can skip this question and continue the quiz. Don’t worry—we’ll count it as correct! 😊

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.

Got feedback on this question?