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
Exercise instructions
- Create a variable called
account_balance
with a value of120.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(____)