btasan.blogg.se

Encore 5-in-1 electro brand 9418
Encore 5-in-1 electro brand 9418












The for keyword is used to create a for loop.

encore 5-in-1 electro brand 9418

This keyword is used for exception handling to explicitly raise exceptions. No matter what is result of the “try” block, block termed “finally” is always executed. This keyword works in conjunction with “try” to catch exceptions. for example check the finally keyword section.

encore 5-in-1 electro brand 9418

Code in “try” block is checked, if there is any type of error, except block is executed. This keyword is used for exception handling, used to catch the errors in the code using the keyword except.

encore 5-in-1 electro brand 9418

"del" keyword is used to delete an object or it can be used to delete any value in any variable or list. False expression forces control to go in “else” statement block. This keyword is a control statement for decision making. Used along with if statement as shown below. It is a control statement for decision making. False expression forces control to go in next (elif or else) block. True expression forces control to go in “if” statement block. This keyword is used to declare user defined functions. This keyword is used to declare user defined classes. However, this keyword skips the current iteration of the loop, but does not end the loop as in example below. This function is also used to control the flow of code like break. Else the next statement in loop is execute as shown below. The break keyword is used to break out of current loop if condition is true. This function is used to control the flow of loops. If a statement evaluated to true, nothing happens, but when it is false, “AssertionError” is raised. This function is used in debugging purposes to check the correctiveness of code. The truth table for “not” is depicted below. This logical operator inverts the truth value to its opposite value as in example 1 below also can be used for checking membership as in example 2.

encore 5-in-1 electro brand 9418

The truth table for “or” is depicted below. However, unlike and, it is used to match any condition from given conditions set. This is a logical operator in python just like and. The truth table for “and” is depicted below. Widely used in decision making with all conditions to match as in example below.














Encore 5-in-1 electro brand 9418