title: What is the function for Varied amount input data for Python?
body: <p>Statistics are often calculated with varying amounts of input data. Write a program that takes any number of integers as input, and outputs the average and max.</p>
  <p>Ex: If the input is:</p>
  <p>15 20 0 5
  the output is:</p>
  <p>10 20</p>
  <pre><code>nums = []
  
  # initialse
  number = 0
  # loop until there isn't an input
  while number != &quot;&quot;:
  # ask for user input
  number = input('Enter number:')
  # validate the input isn't blank
  # prevents errors
  if number != &quot;&quot;:
      # make input integer and add it to list
      nums.append(int(number))
  
  avg = sum(nums) / len(nums)
  print(max(nums), avg)
  </code></pre>
  <p>All is gives me is Enter number:</p>