input: Write a function in Python for reversing a list.
  
  def reverse_list(list): 
      return list[::-1]
  
  assert reverse_list([1, 2, 3, 4, 5])==[5, 4, 3, 2, 1]
  assert reverse_list(['a', 'b', 'c', 'd'])==['d', 'c', 'b', 'a']
  assert reverse_list([])==[]
  assert reverse_list([1])==[1]
  assert reverse_list([1, 2])==[2, 1]
output: def reverse_list(list): 
      return list[::-1]