input: Write a function to check if a list is sorted in ascending order.
  assert is_sorted([1, 2, 3, 4, 5]) == True
  assert is_sorted([5, 4, 3, 2, 1]) == False
  assert is_sorted([2, 2, 3, 4, 5]) == True
  assert is_sorted([1]) == True
output: def is_sorted(lst):
      return all(lst[i] <= lst[i + 1] for i in range(len(lst) - 1))