7. Python Control Flow Statements

Published: 09 January 2022
on channel: G C Reddy Software Testing
393
3

https://www.gcreddy.com/2021/07/pytho...
Python Conditional Statements, Decision making in Python programming, Python if statement, Python else statement, and Python elif statement.

We have three types of Control Flow Statements in Python:
1. Conditional Statements
2. Loop Statements
3. Branching Statements

In Python language also we can find these 3 types of statements…

Generally in any Programming language, conditional Statements are 2 types…
1. If Statement
2. Switch Statement
but in Python no Switch statement, only if the statement

Usage of Decision making/Conditional Statements
1. Run a block of statements when a condition is true
2. Run a block of statements when a condition is true, otherwise, run another block of statements
3. Run a block of statements when a compound condition is true
4. Run a block of statements when a compound condition is true, otherwise, run another block of statements
5. Decide among several alternates (elif)
6. Run a block of statements when more than one condition is true (nested if)

Python Complete Tutorial
https://www.gcreddy.com/2021/07/pytho...

Python Video Tutorial
   • Python Tutorial for Beginners | G C Reddy |  

Python Programming Syllabus
https://www.gcreddy.com/2021/05/pytho...

Python Programming Quiz
https://www.gcreddy.com/2021/11/pytho...

Python Interview Questions for Fresher
https://gcreddy.info/python-interview...
--------------------------------------------------
1. Introduction to Python Programming Language
https://www.gcreddy.com/2021/07/intro...

2. Download and Install Python
https://www.gcreddy.com/2021/07/downl...

Python Environment Setup (Using PyCharm IDE)
https://www.gcreddy.com/2022/01/pytho...

3. Python Language Syntax
https://www.gcreddy.com/2021/07/pytho...

4. Python Keywords and Identifiers
https://www.gcreddy.com/2021/07/pytho...

5. Comments in Python
https://www.gcreddy.com/2021/11/pytho...

6. Python Variables
https://www.gcreddy.com/2021/07/pytho...

7. Python Data Types
https://www.gcreddy.com/2021/07/pytho...

8. Python Operators
https://www.gcreddy.com/2021/07/pytho...

9. Python Conditional Statements
https://www.gcreddy.com/2021/07/pytho...

10. Python Loops
https://www.gcreddy.com/2021/07/pytho...

11. Python Branching Statements
https://www.gcreddy.com/2021/11/pytho...

12. Python Numbers
https://www.gcreddy.com/2021/11/pytho...

13. String Handling in Python
https://www.gcreddy.com/2021/07/strin...

14. Python Data Structures - Lists
https://www.gcreddy.com/2021/07/pytho...

15. Python Data Structures - Sets
https://www.gcreddy.com/2021/11/pytho...

16. Python Data Structures - Tuples
https://www.gcreddy.com/2021/07/pytho...

17. Python Data Structures - Dictionaries
https://www.gcreddy.com/2021/07/pytho...

18. Python User Defined Functions
https://www.gcreddy.com/2021/12/pytho...

19. Python Built-in Functions
https://www.gcreddy.com/2021/12/pytho...

20. Python Modules
https://www.gcreddy.com/2021/07/pytho...

21. Python User Input
https://www.gcreddy.com/2021/11/pytho...

22. File Handling in Python
https://www.gcreddy.com/2021/09/file-...

23. Python Date and Time
https://www.gcreddy.com/2021/12/pytho...

24. Python Exception Handling
https://www.gcreddy.com/2021/12/pytho...

25. Python Regular Expressions
https://www.gcreddy.com/2021/12/pytho...

26. Python Object Oriented Programming
https://www.gcreddy.com/2021/12/pytho...

27. Inheritance in Python
https://www.gcreddy.com/2021/12/inher...

28. Polymorphism in Python
https://www.gcreddy.com/2022/01/polym...

29. Abstraction in Python
https://www.gcreddy.com/2022/01/abstr...
--------------------------------------------------