All posts by Tuna Peyo

The try…except…finally statements

Jul 22,97

You can use the finally clause instead of the else clause with a try statement. The difference is that the …

Read More

The try…except…else statements

Jul 22,97

You can include an else clause when catching exceptions with a try statement. The statements inside the else block will …

Read More

The try…except statements

Jul 22,97

To handle errors (also known as exceptions) in Python, you can use the try…except statements. These statements tell Python what …

Read More

Syntax and logical errors

Jul 22,97

Two types of errors can occur in Python: 1. Syntax errors – usually the easiest to spot, syntax errors occur when …

Read More

Types of errors

Jul 20,97

Errors in Python can be categorized into two types: 1. Compile time errors – errors that occur when you ask …

Read More

Nested loop statements

Jul 20,97

You can place a loop statement inside another loop statement. This process is called nesting. Consider the following example: x = …

Read More
Geek University 2022