comp_python_lecture_05
comp_python_lecture_05
INTRODUCTION TO COMPUTER
PROGRAMMING
Lecture 5: Control Structures
+Example:
The if - else statement
+The if-else statement checks the condition and executes the if
block of code when the condition is True, and if the condition is
False, it will execute the else block of code.
+Syntax of the if-else statement: