Variables
# Variables can be strings i.e. text values
my_name = 'Rico Suave'
# Variables can be numbers, like integers (ints)
total_cars_owned = 10
# There are also floats as well
university_gpa = 3.8
# Somethings we just need to know if something is True or False
can_dance = True
# We can display variable values by using string's format method and a placeholder - {}
print('Hola, me llamo {}'.format(my_name))
print('I have a total of {} cars'.format(total_cars_owned))Last updated