Python Control Statements

Previous
Next

Control statements:

  • Statement is a line of code.
  • Program is a set of statements.
  • Statements execute either sequential or random.
  • Sequential execution from top to bottom in the program.
  • Control statements execute randomly and repeatedly depend on specified conditions.
ConditionalLoopBranching
if – blockwhile loopbreak
if – elsefor loopcontinue
if – elif – elsenested Looppass
nested – if return
Previous
Next

Add Comment

Courses Enquiry Form