code: def read_numbers(numbers):
      
      if isiterable(numbers):
          for number in numbers:
              yield float(str(number).strip())
      else:
          with open(numbers) as fh:
              for number in fh:
                  yield float(number.strip())
docs: Read the input data in the most optimal way