Question
How many times will the body of the following loop be run?
secret = input("Guess my secret: ")
while secret != "I am a superhero":
secret = input("Guess my secret: ")
print("Good guess")
Select one:
a.
1
b.
0
c.
It depends on the user's input
d.
Once for each character in "I am a superhero"
secret = input("Guess my secret: ")
while secret != "I am a superhero":
secret = input("Guess my secret: ")
print("Good guess")
Select one:
a.
1
b.
0
c.
It depends on the user's input
d.
Once for each character in "I am a superhero"
Answers
GPT 3.5
c. It depends on the user's input
Related Questions
I had a test in my computer science course in which I was asked if any while loop can be replaced wi...
What kind of loop should be used in a game where the user is guessing a secret code and the message...
Malik wants to create a program that will repeat Spanish vocabulary words five times. What kind of l...