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 it. If the list is empty, print "No elements in the list."
  assert random_element(["apple", "banana", "mango", "pear", "grape"])#may print any one of the given fruits
  assert random_element([])==print("No elements in the list.")
output: import random
  
  def random_element(lst):
      if not lst:
          print("No elements in the list.")
      else:
          print(random.choice(lst))