Skip to main content

5 docs tagged with "Conditionals"

View all tags

Combining Loops and Conditionals

Following our exploration of break and continue, this article delves into combining loops and conditionals. This concept is essential for building complex logic and is a foundational element in modern Python development.

Conditional Statements: if (Part 1)

Following our exploration of Common Built-in Functions, this article introduces a fundamental concept in programming: conditional statements. We'll start with the most basic conditional statement, the if statement.

Conditional Statements: if-elif-else (Part 3)

Following our exploration of Conditional Statements: if-else (Part 2), this article introduces the if-elif-else statement, which allows you to check multiple conditions in a sequence.

Conditional Statements: if-else (Part 2)

Following our exploration of Conditional Statements: if (Part 1), this article delves into the if-else statement, which allows you to execute a different block of code when the if condition is not met.

Ternary Operator

Following our exploration of Conditional Statements the ternary operator.