All posts by Tuna Peyo

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

The if…else statement

Jul 4,97

The if…else statement in Python is used when you need to choose between two alternatives. The else clause in the code …

Read More

Get user input

Jul 3,97

Most of the applications you write will need some way to interact with a user. The simplest way to obtain …

Read More
Geek University 2022