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' :
break
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
waiting = input('hi')
while waiting == 'Y':
another = input ('application')
if another == 'N':
break
577 PHP ssh2_scp_send fails to send files as intended
609 Uncaught (inpromise) Error on Electron: An object could not be cloned
599 GDB gets version error when attempting to debug with the Presense SDK (IDE)
886 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
© 2024 OneMinuteCode. All rights reserved.