Types of errors
Jul 20,97Errors in Python can be categorized into two types: 1. Compile time errors – errors that occur when you ask …
Read MoreNested loop statements
Jul 20,97You can place a loop statement inside another loop statement. This process is called nesting. Consider the following example: x = …
Read MoreThe while loop
Jul 20,97The while loop in Python is used to repeatedly execute statements as long as the given condition is true. When …
Read MoreUse else statement in loops
Jul 19,97You can use the else statement in the for and while loops in Python. The else statement is optional and executes …
Read MoreThe pass statement
Jul 19,97The pass statement in Python usually serves as a placeholder to ensure that the block has at least one statement. …
Read MoreThe continue statement
Jul 18,97The continue statement in Python is used to skip the rest of the code inside a loop for the current …
Read More