Question: I'm having a problem figuring out what the error is and how to solve it. I've tried to figure it out but cant seem to

I'm having a problem figuring out what the error is
and how to solve it. I've tried to figure it out but
cant seem to figure out what to do?
CODE:
 I'm having a problem figuring out what the error is and
how to solve it. I've tried to figure it out but cant
ERROR INSTRUCTION:

Traceback (most recent call last):

File "main.py", line 87, in

main()

File "main.py", line 16, in main

analyzeData(food, rate)

File "main.py", line 75, in analyzeData

if (max

TypeError: '

KeyboardInterrupt

| print welcome message: def welcome(): print("HELLO, WELCOME TO THE FAST FOOD RATING PROGRAM!.") print("--- print("") print("You will be given the opportunity to rate your favorite to least favorite") print("fast-food restaurants on a scale of 1-10. It we will display the list") print("of your favorite to least favorite restaurants") # function to have user input movie names. Return movieName def food Input(): foodName - input(" Enter in a fast-food restaurant:") return foodName # gets user Input rate for movie and make sure it is a positive number. # Also returns the movie rate. def rateInput(): Incorrect'ERROR foodrate - input("What is the rating?:") while (Incorrect --'error"): try: foodrate - int (foodrate) except ValueError: Incorrect - ERROR foodrate - input("Invalid restaurant rate, Enter rate: ") else: if (foodrate rate[x]): min - rate[x] foodMinName - food[x] print("Highest rate is: "max," and the movie name is: ", foodMaxName, sep='') print("Lowest rate is: ",min," and the movie name is:", foodMinName, sep="") print("Your favorite movie from file is:", foodMaxName) print(" Goodbye!") main()

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!