input: Write a function to generate a histogram in Python using the data provided. The function should take a list of numbers as input and display a histogram with specified bin ranges. If the list is empty, the function should print a message stating "No data available".
  assert generate_histogram([3, 5, 7, 2, 8, 10, 11, 65, 72, 81, 99, 100, 150])==None
  assert generate_histogram([])==None
output: def generate_histogram(data):
      if not data:
          print("No data available")
          return
      
      bins = [0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, float('inf')]
      hist = [0] * (len(bins) - 1)
      
      for num in data:
          for i in range(len(bins) - 1):
              if bins[i] <= num < bins[i + 1]:
                  hist[i] += 1
                  break
      
      for i in range(len(hist)):
          print(f"{bins[i]}-{bins[i + 1]}: {'*' * hist[i]}")