input: 
  from typing import List
  
  def smallestNumber(nums: List[float]) -> float:
      """ Find the smallest number in a given list of numbers.
      >>> smallestNumber([4.0, 5.0, 6.0, 7.0, 8.0])
      4.0
      >>> smallestNumber([2.0, 1.0, 3.0, 7.0])
      1.0
      """
      smallest = nums[0]
      for i in range(1, len(nums)):
          if nums[i] < smallest:
              smallest = nums[i]
      return smallest
  
output:     smallest = nums[0]
      for i in range(1, len(nums)):
          if nums[i] < smallest:
              smallest = nums[i]
      return smallest