title: Asking for a sequence of inputs from user python3
body: <p>I am working on a python exercise asking for 
  Write Python programs that read a sequence of integer inputs and print</p>
  
  <pre><code>The smallest and largest of the inputs.
  </code></pre>
  
  <p>My code so far </p>
  
  <pre><code>def smallAndLarge():
  
      num1 = int(input("Enter a number: "))
      num2 = int(input("Enter a number: "))
  
      if num1 &gt; num2:
          print(num1,"is the largest number, while",num2,"is the smallest number.")
      else:
          print(num2,"is the largest number, while",num1,"is the smallest number.")
  
  
  smallAndLarge()
  </code></pre>
  
  <p>I am using def smallAndlarge(): since my instructor wants us to use a def function for all of our programs in the future. </p>
  
  <p>My question is how do I ask for multiple inputs from a user until they decided they dont want to add anymore inputs. Thanks for your time.</p>