Skip to content Skip to sidebar Skip to footer

Python Continue The Loop From Start When The Condition Is False

This is the continuation of my previous question where it was not that clear what I want to do. Now please find the Full code here I know this code is very crude as I am new to pr

Solution 1:

You need to re-structure your program:

def call_me():
    while True:
        prerequisite()
        main_operations()
        ifvalidate():
            main_continuing()

or

def call_me():
    while True:
        prerequisite()
        whilevalidation():
            main_operations()

This will loop around as you need it to.

Post a Comment for "Python Continue The Loop From Start When The Condition Is False"