this avoids the tedious prefixing of functions via the (aliasof the module name howeverfor large programs it is good practice to always use the prefix/alias name constructionto be able to clearly ascertain precisely which module function being used belongs to flow control flow control in python is similar to that of many programming languageswith conditional statements as well as while and for loops the syntax for if-then-else flow control is as follows if elif elsehereand are logical conditions that are either true or falselogical conditions often involve comparison operators (such as ==><=!=in the example abovethere is one elif partwhich allows for an "else ifconditional statement in generalthere can be more than one elif partor it can be omitted the else part can also be omitted the colons are essentialas are the indentations the while and for loops have the following syntax while for in aboveis an iterable object (see section belowfor further control in for and while loopsone can use break statement to exit the current loopand the continue statement to continue with the next iteration of the loopwhile abandoning any remaining statements in the current iteration here is an example import numpy as np ans 'ywhile ans !' 'outcome np random randint ( , + if outcome = print (hooray !"break elseprint ("bad luck "outcome ans input (again ( / "