69.2k views
4 votes
Writ a loop that repeatedly asks the user to enter a letter until they type k, then the loop ends.

Writ a loop that repeatedly asks the user to enter a letter until they type k, then-example-1

1 Answer

1 vote

Answer:

python

Step-by-step explanation:

loopKeepsGoing = True
while loopKeepsGoing:
inputLetter = input("please give me a letter")
if inputLetter == "k":
loopKeepsGoing = False

User BrianP
by
4.2k points