input: Write a function to print a random element from a given list of fruits. The function should take a list of fruits as input and print a random fruit from the list. If the list is empty, it should print "No fruits available".
  import random
  
  def print_random_fruit(fruits):
      if len(fruits) == 0:
          print("No fruits available")
      else:
          randomIndex = random.randint(0, len(fruits)-1)
          randomFruit = fruits[randomIndex]
          print("Random fruit: " + randomFruit)
  
  assert print_random_fruit(["apple", "banana", "mango", "pear", "grape"]) is None
  assert print_random_fruit([]) is None
output: import random
  
  def print_random_fruit(fruits):
      if len(fruits) == 0:
          print("No fruits available")
      else:
          randomIndex = random.randint(0, len(fruits)-1)
          randomFruit = fruits[randomIndex]
          print("Random fruit: " + randomFruit)