Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- name = 'Jacob H. Freedman'
- age = 26
- height = 66 # inches
- weight = 135 # lbs
- height_in_cm = height * 2.54
- weight_in_kg = weight * 0.45359237
- eyes = 'Blue'
- teeth = 'White'
- hair = 'Brown'
- print "Let's talk about %s." % name
- print "He's %d inches tall." % height
- print "He's %d pounds heavy." % weight
- print "Actually that's not too heavy."
- print "He's got %s eyes and %s hair." % (eyes, hair)
- print "His teeth are usually %s depending on his coffee." % teeth
- #tricky line
- print "If I add %d, %d, and %d I get %d." % (
- age, height, weight, age + height + weight)
- print "Wait! We're in Europe!"
- print "He's %.2f cm tall." % height_in_cm
- print "He's %.2f kg heavy." % weight_in_kg
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement