Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

python while continue

## When the program execution reaches a continue statement, 
## the program execution immediately jumps back to the start 
## of the loop.
while True:
    print('Who are you?')
    name = input()
    if name != 'Joe':
        continue
    print('Hello, Joe. What is the password? (It is a fish.)')
    password = input()
    if password == 'swordfish':
        break
print('Access granted.')
Comment

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")
Comment

while loop in python for do you want to continue

while True:
    # some code here
    if input('Do You Want To Continue? ') != 'y':
        break
Comment

PREVIOUS NEXT
Code Example
Python :: docstring python 
Python :: what is heapq in python 
Python :: beautifulsoup docs 
Python :: how to find gcd of two numbers in python 
Python :: how to run multiple python files one after another 
Python :: pandas .replace multiple values in column 
Python :: append vector to vector python 
Python :: on_delete django options 
Python :: how to if in pythob 
Python :: pandas change column order 
Python :: print multiple strings in python 
Python :: List Nested Lists 
Python :: selenium python get image from url 
Python :: python return double quotes instead of single 
Python :: ten minute mail 
Python :: ajouter dans une liste python 
Python :: time series python 
Python :: python printing 
Python :: pyaudio mic stream 
Python :: if something in something python example 
Python :: time complexity of data structures in python 
Python :: bst in python 
Python :: AttributeError: __enter__ in python cde 
Python :: python seq 
Python :: planet earth minecraft 
Python :: make row readonly tablewidget pyqt 
Python :: Young C so new(pro.cashmoneyap x nazz music) soundcloud 
Python :: Create a python for loop that sums the numbers from 100 to 200 
Shell :: conda install tqdm 
Shell :: uninstall node js in ubunt 
ADD CONTENT
Topic
Content
Source link
Name
6+7 =