title: Assistance with function not working
body: <p>The <code>show_list</code> function of my code does not work. I get a message stating that <code>'multiples'</code> is not defined but I have not been able to identify the problem. Can someone please review and advice as to what it is Im doing wrong. </p>
  
  <pre><code>def main():
      input1 = int(input("enter the low integer: "))
      input2 = int(input("enter the high integer: "))
      input3 = int(input("enter the integer for the multiples: "))
  
      show_multiples(input1, input2, input3)
  
      print ("List was created")
  
  
   def show_multiples(input1, input2, input3):
  
      num_range = range(input2, input1, -1)
      multiples = []
  
      for num in num_range:
          if num % input3 == 0:
              multiples.append(num)
              return multiples
  
  
      show_list(multiples)
  
  def show_list(multiples):
  
      elem = len(multiples)
      average = sum(multiples) / elem
      num_range = range(input2, input1, -1)
  
      print ("the list has", elem, "elements.")
  
      for num in num_range:
          if num % input3 == 0:
          print (num, end=" ")
  
      print ("Average of multiples is  ", average)
  
  
  
  main()
  </code></pre>