Advertisement
Guest User

Untitled

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