def tripPlanner(trip):    vowels = “aeiou”    i = 1    for l…

def tripPlanner(trip):    vowels = “aeiou”    i = 1    for letter in trip:       if i % 4 == 0:            return “Time to hit the road…”        if letter not in vowels:            print(“How far do we go?”) else:            print(“Stay home”)        i += 1print(tripPlanner(“Oregon”))

It’s time to put the finishing touches on your travel itiner…

It’s time to put the finishing touches on your travel itinerary! Write a function itinerary() that takes two parameters, num_days (int), representing the number of days you plan to be on your trip, and activities (str), a string of different activities that are separated by commas. Your function should split the activities into individual activity names and count the number of vowels in each activity. If the number of vowels in any activity is greater than num_days, the function should return “Maybe next time :(“. Otherwise, the function should return “Looks like a fun trip!”.   Note: You may assume that the string will be all lowercase.   Example #1:>>> print(itinerary(4, “hiking,swimming,kayaking”))Expected Output #1:”Looks like a fun trip!”   Example #2:>>> print(itinerary(3,”sightseeing,camping,backpacking”))Expected Output #2:”Maybe next time :(“

Write a short snippet of code that takes a string called loc…

Write a short snippet of code that takes a string called location and stores the index of the first occurrence of the letter “a” (case-insensitive) in a variable named first_occurrence. If the string does not contain “a” or “A”, then the value of first_occurrence should be -1.   # Example:location = “bAhamas” # location can contain any string# YOUR CODE GOES HEREprint(first_occurrence) # 1 for the scenario above

A health care provider prescribes hydroxyzine (Vistaril) ora…

A health care provider prescribes hydroxyzine (Vistaril) oral suspension 10 mg q4h prn anxiety. Directions for mixing: Add 125 mL of water and shake well. Each teaspoon will yield 15 mg of Vistaril. How many mL will you as the nurse administer? (Round final answer to the nearest tenth.) [BLANK-1]