input: Write a function to print a random element from a given list of fruits. If the list is empty, print "No fruits to select". If the list contains only one element, print that element.
  def random_fruit(fruits):
      if not fruits:
          print("No fruits to select")
          return
      if len(fruits) == 1:
          print(fruits[0])
          return
      import random
      randomIndex = random.randint(0, len(fruits)-1)
      print(fruits[randomIndex])
  
  assert random_fruit(["apple", "banana", "mango", "pear", "grape"])==None
  assert random_fruit(["apple"])==None
  assert random_fruit([])==None
output: def random_fruit(fruits):
      if not fruits:
          print("No fruits to select")
          return
      if len(fruits) == 1:
          print(fruits[0])
          return
      import random
      randomIndex = random.randint(0, len(fruits)-1)
      print(fruits[randomIndex])