input: def sort_ascending(nums):
      """
      Implement a sorting algorithm in Python that takes a list of integers as input and outputs the list sorted in ascending order.
  
      Example:
      >>> sort_ascending([4, 2, 7, 1, 9])
      [1, 2, 4, 7, 9]
      >>> sort_ascending([5, 3, 8, 6, 3])
      [3, 3, 5, 6, 8]
      """
output:     for i in range(len(nums)):
          min_idx = i
          for j in range(i+1, len(nums)):
              if nums[j] < nums[min_idx]:
                  min_idx = j
          nums[i], nums[min_idx] = nums[min_idx], nums[i]
      return nums