title: using the output of a function as the input in another function python new to coding
body: <pre><code># any help is greatly appreciated new to this stuff 
  
  def total_bases(int1,int2,int3,int4):
      """(int, int, int, int) -&gt; integer
      Return the total number of bases covered 
      &gt;&gt;&gt;total_bases(2,3,4,5)
      40
      """
  
      return int1+2*int2+3*int3+4*int4
  
  def slugging_percentage(total_bases,int5):
      """ (total_bases, int5) -&gt; float # so for instance i need the product of the first function for the second function 
      Return the slugging percentage given the total number of bases covered and the total number at bat(int5)
      &gt;&gt;&gt;slugging_percentage(20,9)
      2.22
      """
  
      return total_bases/int5
  
  def on_base_percentage(h,bb,hbp,ab,sf):
      """(int,int,int,int,int) -&gt; float
      Return the on-base percentage given the hits, base on balls, hit by pitch, at bats and sacrfice hits
      &gt;&gt;&gt;on_base_percentage(1,2,3,4,5)
      0.43
      """
  
      return (h+bb+hbp)/(ab+bb+hbp+sf)
  
  def on_base_plus_slugging(on_base_percentage,slugging_percentage):
      """(float,float) -&gt; float # as well as for this 
      Return the on-base plus slugging given the on-base percentage and the slugging percentage 
      &gt;&gt;&gt;on_base_plus_slugging(1.0,2.0)
      3.0
      """
  
      return on_base_percentage+slugging_percentage
  
  def OPS_value(on_base_plus_slugging):
      """(float) -&gt; string
      Return the on-base plus slugging value given the on-base plus slugging score range 
      &gt;&gt;&gt;OPS_value(0.8234)
      B
      """
  if on_base_plus_slugging &gt; 0.9000:
      return "A"
  elif on_base_plus_slugging &gt; 0.7667:
      return "B"
  elif on_base_plus_slugging &gt; 0.7000:
      return "C"
  else on_base_plus_slugging &lt; 0.7000:
      return "F"
  elif on_base_plus_slugging == 0.7000:
      return "F"
  </code></pre>