Courses / Python
6. Conditional Statements
Conditional statements allow you to execute code based on certain conditions.
1 min read Chapter 6 of 72
Python
Conditional Statements
Conditional statements let you run different code based on whether conditions are true or false.
"I want my program to respond differently based on user input."
Conditional statements allow you to execute specific blocks of code depending on whether a condition evaluates to true or false.
"I want my program to respond differently based on user input."
Conditional statements allow you to execute specific blocks of code depending on whether a condition evaluates to true or false.