Answers for "while loop in python for do you want to continue"

1

while loop in python for do you want to continue

while input("Do You Want To Continue? [y/n]") == "y":
    # do something
    print("doing something")
Posted by: Guest on September-15-2020
0

while loop in python for do you want to continue

while True:
    # some code here
    if input('Do You Want To Continue? ') != 'y':
        break
Posted by: Guest on September-15-2020

Code answers related to "while loop in python for do you want to continue"

Python Answers by Framework

Browse Popular Code Answers by Language