<filename>LearnPythonTheHardWay/ex5.py
#  #!/usr/bin/env python
#  encoding: utf-8

my_name = '<NAME>'
my_age = 35  # not a lie
my_height = 74  # inches
# Covert the height to centimeters.
my_height_in_cm = my_height * 2.54
my_weight = 180  # lbs
# Convert the weight to kilos.
my_weight_in_kg = my_weight / 2.205
my_eyes = 'Blue'
my_teeth = 'White'
my_hair = 'Brow'

print("Let's talk about %s." % my_name)
print("He's %d inches tall." % my_height)
print("He's %.2f centimeters tall." % my_height_in_cm)
print("He's %d pounds heavy." % my_weight)
print("He's %.2f pounds heavy." % my_weight_in_kg)
print("Actually that's not to heavy.")
print("He's got %s eyes and %s hair." % (my_eyes, my_hair))
print("His teeth are usually %s depending on the coffer." % my_teeth)

# this line is tricky, try to get it exactly right
print("If I add %d, %d, and %d I get %d." % (my_age, my_height, my_weight, my_age + my_height + my_weight))

<filename>LearnPythonTheHardWay/ex5.py
#  #!/usr/bin/env python
#  encoding: utf-8

my_name = '<NAME>'
my_age = 35  # not a lie
my_height = 74  # inches
# Covert the height to centimeters.
my_height_in_cm = my_height * 2.54
my_weight = 180  # lbs
# Convert the weight to kilos.
my_weight_in_kg = my_weight / 2.205
my_eyes = 'Blue'
my_teeth = 'White'
my_hair = 'Brow'

print("Let's talk about %s." % my_name)
print("He's %d inches tall." % my_height)
print("He's %.2f centimeters tall." % my_height_in_cm)
print("He's %d pounds heavy." % my_weight)
print("He's %.2f pounds heavy." % my_weight_in_kg)
print("Actually that's not to heavy.")
print("He's got %s eyes and %s hair." % (my_eyes, my_hair))
print("His teeth are usually %s depending on the coffer." % my_teeth)

# this line is tricky, try to get it exactly right
print("If I add %d, %d, and %d I get %d." % (my_age, my_height, my_weight, my_age + my_height + my_weight))

#  #!/usr/bin/env python #  encoding: utf-8 # not a lie # inches # Covert the height to centimeters. # lbs # Convert the weight to kilos. # this line is tricky, try to get it exactly right