The Python, keywords are the reserved words with a unique functions. These words cannot be used as a variables, function-names, class names. These are case-sensitive keywords.
Python's built-in methods and classes are not the same as the keywords. Built-in methods and classes are constantly present; however, they are not as limited in their application as keywords. When we assign a value to a keyword, it will raise an SyntaxError.
Python contains thirty-five keywords in the most recent version, i.e., Python 3.8. Here we have shown a complete list of Python keywords −
Keyword Description an logical operator To create an alias For debugging used to signify that the coroutine should pause execution until the awaited task completes used to declare a function as a coroutine used to control the loop used to create a class To continue to the next iteration of a loop used to define a function to delete an object Used in conditional statement to check the condition Used in conditional statement Used in exception handling Boolean value, result of comparison operation a block of code that will be executed no matter if there is an exception or not. Used to create a for loop used to import a function from a module To create a global variable To make conditional statement To import a module To check if an element is present in a iterable or not To check whether both the values are equal or not To create a lambda function Represent a null value To declare a non-local variable A logical operator A logical operator A null statement, statement that will not perform anything To raise an exception To exit a function and return a value Boolean value, result of comparison operation to make a try in except statements To create a while loop Used to simplify exception handling To return a list of values from a generatorRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4