[Newbie to Python] There's an infinite number of print doors in the door

Asked 2 weeks ago, Updated 2 weeks ago, 2 views

We need to make a code to determine the presence or absence of a waiting person using the while statement.

If the answer is N, you must use break to exit!

I wrote the script like this.

waiting=input("\nIs there a standby?[Y/N]\n")
while waiting == 'Y' :
    print("Receive applications".")
    if waiting == 'N' :

But when I turn the script I wrote, when I type Y, the print statement (application) comes out indefinitely. Please tell me how to fix it.

python script

2022-09-20 10:21

1 Answers

waiting = input('hi')
while waiting == 'Y':
    another = input ('application')
    if another == 'N':

2022-09-20 10:21

If you have any answers or tips

© 2022 pinfo. All rights reserved.