Python

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

The while loop

Jul 20,97

The while loop in Python is used to repeatedly execute statements as long as the given condition is true. When …

Read More

Use else statement in loops

Jul 19,97

You can use the else statement in the for and while loops in Python. The else statement is optional and executes …

Read More

The pass statement

Jul 19,97

The pass statement in Python usually serves as a placeholder to ensure that the block has at least one statement. …

Read More

The continue statement

Jul 18,97

The continue statement in Python is used to skip the rest of the code inside a loop for the current …

Read More
Geek University 2022