Advertisement
Guest User

Untitled

a guest
Jun 19th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.71 KB | None | 0 0
  1. name = 'Zed A. Shaw'
  2. age = 35 # not a lie
  3. height = 74 # inches
  4. height_in_cm = height * 2.54
  5. weight = 180 # lbs
  6. weight_in_kg = weight * 0.45359237
  7. eyes = 'Blue'
  8. teeth = 'White'
  9. hair = 'Brown'
  10.  
  11. print "Let's talk about %s." % name
  12. print "He's %d inches (%d cm) tall." % (height, height_in_cm)
  13. print "He's %d pounds (%d kg) heavy" % (weight, weight_in_kg)
  14. print "Actually that's not too heavy."
  15. print "He's got %s eyes and %s hair." % (eyes, hair)
  16. print "His teeth are usually %s depending on the coffee." % teeth
  17.  
  18. # this line is tricky, try to get it exactly right
  19. print "If I add %d, %d, and %d I get %d." % (
  20. age, height, weight, age + height + weight)
  21.  
  22. print "He weights %d kilos." % (weight * 0.45359237)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement