Guest User

Untitled

a guest
Jun 24th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. print "How old are you?",
  2.  
  3. age = raw_input()
  4.  
  5. print "How tall are you?",
  6.  
  7. height = raw_input()
  8.  
  9. print "How much do you weigh?",
  10.  
  11. weight = raw_input()
  12.  
  13.  
  14.  
  15. #typical pattern (conditional = initial_value,
  16.  
  17. #while conitional (==) true (or <, >, <=,>=)
  18.  
  19.  
  20.  
  21. lameness = int(raw_input("How lame are you?")) # things that are above others come before.
  22.  
  23. max_lameness = 100
  24.  
  25. while lameness > max_lameness:
  26.  
  27. lameness = int(raw_input("try again"))
  28.  
  29.  
  30.  
  31. print "okay. That seems to be accurate." #after control statements, such as while, leave a blank to indicate endingn point
  32.  
  33. #things that are below others come after.
  34.  
  35. print "So, you're %r old, %r tall and %r heavy... oh and %r percent lame." % (
  36.  
  37. age, height, weight, lameness)
Add Comment
Please, Sign In to add comment