Python

The break statement

Jul 18,97

The break statement  is used to terminate a loop in Python. It is usually used inside an if statement that defines …

Read More

Use for loop with the range() function

Jul 17,97

The range() function in Python is often used in for statements to define the number of loop iterations. This built-in …

Read More

The for loop

Jul 17,97

Looping statements are used to repeat an action over and over again. One of the most common looping statements is …

Read More

Use logical operators

Jul 6,97

The logical operators in Python (and, or, not) are often used in the if, if…else, and if…elif statements. They enable …

Read More

Nested if statements

Jul 6,97

You can place an if (or if…else, if…elif) statement inside another statement. This process is called nesting and enables you …

Read More

The if…elif statement

Jul 4,97

The if…elif statement in Python is used when you need to choose between more than two alternatives. The elif clause …

Read More
Geek University 2022