input: Write a function to print a random element from a given list. The function should take a list as input and print a random element from the list.
  
  def print_random_element(input_list):
      import random
      if not input_list:
          return print("List is empty")
      randomIndex = random.randint(0, len(input_list)-1)
      randomElement = input_list[randomIndex]
      print("Random element: " + randomElement)
  
  assert print_random_element(["apple", "banana", "mango", "pear", "grape"])
  assert print_random_element([]) # should print "List is empty"
output: def print_random_element(input_list):
      import random
      if not input_list:
          return print("List is empty")
      randomIndex = random.randint(0, len(input_list)-1)
      randomElement = input_list[randomIndex]
      print("Random element: " + randomElement)