input: def determine_commission_rate(gross_sales):
      """
      Calculate the commission rate based on the given gross sales.
      If gross sales are greater than or equal to 10000, the commission rate is 0.1.
      If gross sales are between 5000 and 9999, the commission rate is 0.07.
      Otherwise, the commission rate is 0.05.
      
      >>> determine_commission_rate(15000)
      0.1
      >>> determine_commission_rate(7500)
      0.07
      >>> determine_commission_rate(4500)
      0.05
      """
      if gross_sales >= 10000:
          return 0.1
      elif gross_sales >= 5000:
          return 0.07
      else:
          return 0.05
output:     if gross_sales >= 10000:
          return 0.1
      elif gross_sales >= 5000:
          return 0.07
      else:
          return 0.05