input: from typing import List
  
  def smallestNumber(nums: List[int]) -> int:
      """ Find the smallest number in a given list.
      >>> smallestNumber([4, 5, 6, 7, 8])
      4
      >>> smallestNumber([10, 2, 3, 4, 5])
      2
      """
      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