McBadass

Exercise 5, Python 2.7

May 25th, 2011
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.63 KB | None | 0 0
  1. my_name = 'Zed A. Shaw'
  2. my_age = 35 # not a lie
  3. my_height = 74 # inches
  4. my_weight = 180 # lbs
  5. my_eyes = 'Blue'
  6. my_teeth = 'White'
  7. my_hair = 'Brown'
  8.  
  9. print "Let's talk about {}.".format(my_name)
  10. print "He's {} inches tall.".format(my_height)
  11. print "He's {} pounds heavy.".format(my_weight)
  12. print "Actually that's not too heavy."
  13. print "He's got {} eyes and {} hair.".format(my_eyes, my_hair)
  14. print "His teeth are usually {} depending on the coffee.".format(my_teeth)
  15.  
  16. # this line is tricky, try to get it exactly right
  17. print "If I add {}, {}, and {} I get {}.".format(
  18. my_age, my_height, my_weight, my_age + my_height + my_weight)
Advertisement
Add Comment
Please, Sign In to add comment