Chinh wants to have a program print "Sorry, but that isn't one of your options" until the user enters the correct information. What should be used to do this?

(1 point)
• database
• import
• while loop
• for loop

1 answer

To achieve the functionality where the program continues to print "Sorry, but that isn't one of your options" until the user enters the correct information, you should use a while loop. This loop can repeatedly prompt the user until valid input is provided.

So the correct answer is: • while loop