41.3k views
5 votes
Complete the code.

You are writing a loop to allow the user to enter data until they enter a "Q". You want to allow them to enter an upper- or lowercase "Q".

if yourTeam.
() == "q":
break

User Jamari
by
5.4k points

2 Answers

2 votes

Answer:

# Set an initial condition.

game_active = True

# Set up the while loop.

while game_active:

# Run the game.

# At some point, the game ends and game_active will be set to False.

# When that happens, the loop will stop executing.

# Do anything else you want done after the loop runs.

Step-by-step explanation:

User Inspire
by
5.5k points
5 votes

Answer:

Lower

Step-by-step explanation:

User Rob Fagen
by
4.6k points