Python Vocabulary
Across
- 2. It is used in conditional statements (if statements), and decides what to do if the condition is False.
- 5. It is used to end the current iteration in a for loop or a while loop and goes to the next iteration.
- 8. It allows you to modify the variable outside of the current scope.
- 10. It is used to catch and handle the exception(s) that are encountered in the try clause.
- 11. It is used to produce an exception to interrupt the code execution.
- 13. It terminates the current loop and resumes execution at the next statement. It can be used in both while and for loops.
- 15. An anonymous inline function consisting of a single expression which is evaluated when the function is called.
- 17. This block lets you check some code for errors.
- 18. It is always executed after try and except blocks. It always executes after normal termination of try block or after try block terminates due to some exception.
- 21. It is used to make code in one module available in another.
- 22. It is a control flow statement which allows code to be executed repeatedly, depending on whether a condition is satisfied or not.
Down
- 1. It is used when debugging code. It lets you test if a condition in your code returns True, if not, the program will raise an Error.
- 3. It is used to work with variables inside nested functions, where the variable should not belong to the inner function.
- 4. marks the start of the function header. A function name to uniquely identify the function.
- 6. It is used to define a null value, or no value at all. It is not the same as 0, False, or an empty string.
- 7. A template for creating user-defined objects.
- 9. It is a null statement. The interpreter does not ignore this statement, but nothing happens, and the statement results into no operation.
- 12. It is the same as "else if" in other programming languages.
- 14. it is used to end the execution of the function call and gives the result to the caller.
- 16. It can be used to erase an item at a given index and to remove slices from a list.
- 19. It is used for decision-making operations. It contains a body of code which runs only when the condition given in the statement is true.
- 20. It is a keyword that is used like return, but the function will return a generator.