Get startedGet started for free

Working with number variables

Python allows you to set variables as whole numbers or numbers with decimals. In this exercise, you will try using different numerical values for variables.

This exercise is part of the course

Introduction to Python for Developers

View Course

Exercise instructions

  • Create a variable called account_balance with a value of 120.50.
  • Print the account_balance variable.

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

# Age of a customer
customer_age = 27

# Create account_balance variable
____ = ____

# Print account_balance
print(____)
Edit and Run Code