title: Python2.7: raw_input and Math
body: <p><strong>PROGRAM</strong></p>
  
  <p>I'm attempting to write a code which calculates the estimated fatigue level of an elite level weightlifter based on empirical data from various studies of Russian and American lifters.</p>
  
  <p>All of these calculations are based on a lifters heaviest weight lifted. This isn't always so easily tested during training as max effort lifts severely hinders recovery due to their intensity. For that reason a part of the program has to be able to estimate a one repetition max based on a single set.</p>
  
  <p><strong>PROBLEM</strong></p>
  
  <p>'if' returns perfectly. All the elifs just print the decimals after * and loads menu(). I have tried experimenting with float() and int() but my programming ability seems to be lacking.</p>
  
  <p>I'm also pretty sure that my writing is very inefficient (been coding for two weeks).</p>
  
  <pre><code>def repmax():
  clear()
  while True:
      print "Weight lifted?\n"
      weight = int(raw_input("&gt; "))
      print "\nRepetitions done?\n"
      reps = int(raw_input("&gt; "))
      print "\n"
      if reps == 1:
          print "Your estimated 1RM is %s.\n" % weight * 1
          menu()
      elif reps == 2:
          print "Your estimated 1RM is %s." % weight * 0,95
          menu()
      elif reps == 3:
          print "Your estimated 1RM is %s." % weight * 0,90
          menu()
      elif reps == 4:
          print "Your estimated 1RM is %s." % weight * 0,88
          menu()
      elif reps == 5:
          print "Your estimated 1RM is %s." % weight * 0,86
          menu()
  </code></pre>