HELP! I don't know how to add the amount of request per class based on user .....
HELP! I don't know how to add the amount of request per class based on user input from the list. Here are the instructions and my code. a. The Downdog Yoga Studio offers five types of classes, as shown in Table 6-1. Design a program that accepts a number representing a class and then displays the name of the class. b. Modify the Downdog Yoga Studio program so that numeric class requests can be entered continuously until a sentinel value is entered. Then display each class number, name, and a count of the number of requests for each class. classNum = [1,2,3,4,5] classesName = [ "Yoga 1", "Yoga 2", "Children's Yoga", "Prenatal Yoga", "Senior Yoga", "Quit"] userInput = input index = 0 while index != "Quit": userInput = input("Enter a class number or Quit: ") if userInput == "1": print("Yoga 1") elif userInput == "2": print("Yoga 2") elif userInput == "3": print("Children's Yoga") elif userInput == "4": print("Prenatal Yoga") elif userInput == "5": print("Senior Yoga") if userInput == "Quit": print(classesName) print(classNum[index]) print("Done") break