Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Introduction to Python Control Flow Statements
Rating: 4.6 out of 5(14 ratings)
3,337 students

Introduction to Python Control Flow Statements

Learn from scratch how to execute code with control flow statements
Last updated 3/2026
English

What you'll learn

  • How to code if statements
  • How to code else statements
  • How to code elif statements
  • How to code while loop statements
  • How to code for loop statements
  • How to code nested for loop statements
  • How to use break statements
  • How to use continue statements
  • How to use for and range statements

Course content

3 sections32 lectures2h 41m total length
  • Introduction1:24
  • What is Python5:17
  • Installing Python on Windows4:34
  • Installing Python on Macs6:57
  • Installing Pycharm on Windows4:24
  • Installing Pycharm on Macs3:30
  • Installing Python on Linux6:40
  • Changing theme in Pycharm2:37
  • Pycharm configuration on Macs11:17
  • Pycharm configuration on Windows - Part 17:18
  • Pycharm configuration on Windows - Part 28:04

Requirements

  • Basic understanding of using a computer
  • Basic understanding of using the internet

Description

A program’s control flow is the order in which the program’s code executes. The control flow of a Python program is regulated by conditional statements, loops, and function calls.

Often, you need to execute some statements only if some condition holds, or choose statements to execute depending on several mutually exclusive conditions. The Python compound statement if, which uses if, elif, and else clauses, lets you conditionally execute blocks of statements.

Control flow statements are an essential part of the Python programming language.

A control flow statement is a block of programming that analyses variables and chooses a direction in which to go based on given parameters. In simple sentence, a control structure is just a decision that the computer makes. So, it is the basic decision-making process in programming and flow of control determines how a computer program will respond when given certain conditions and parameters. It determines the  order in which the program’s code executes.

They are decision Making Statements  that allow the program to take the decision as which statement should be executed next.

Decision Making statements are used when we want a set of instructions should be executed in one situation and different instructions should be executed in another situation .Decision making can be implemented in python using:

  • if statements

  • else statements

  • elif statements

  • while loops

  • for loops

Who this course is for:

  • Beginners to Python
  • Beginners to Programming
  • Beginners to Web Development