- and -> Logical AND operator
- as -> Used to create an alias
- assert -> Used for debugging
- async -> The async keyword is put in front of a function declaration to turn it into an asynchronous function.
- await -> The await keyword can be put in front of any async coroutine-based function to pause your code on that line until the coroutine fulfills. Then, return the resulting value.
- break -> Used to break out of a loop
- class -> Used to create a class
- continue -> Used to continue to the next iteration of a loop
- def -> Used to create a function
- del -> Used to delete an object
- elif -> Used in conditional statements, same as else if
- else -> Used in conditional statements - if
- except -> Used with exceptions, what to do when an exception occurs
- finally -> Used with exceptions, what to do when none of the specified exceptions solved
- for -> Used to create a for loop
- from -> Used to import specific parts of a module
- global -> Used to declare a global variable
- if -> Used to define a conditional statement
- import -> Used to import a module
- in -> Used to check if a value is present in a list, tuple, etc.
- is -> Used to test if two variables are equal
- lambda -> Used to create an anonymous function
- None -> Used to represent a NULL value
- nonlocal -> Used to declare a non-local variable
- not -> Logical NOT operator
- or -> Logical OR operator
- pass -> A null statement, a statement that will do nothing
- raise -> Used to raise an exception
- return -> Used to exit a function and return a value
- try -> Used to make a try...except statement in exception handling
- while -> Used to create a while loop
- with -> Used to simplify exception handling
- yield -> Used to end a function, returns a generator
- False-> Boolean value False
- True -> Boolean value True
- peg_parser -> It was an easter egg related to the rollout of the new PEG parser. The easter egg, along with the old LL(1) parser, will be removed in 3.10.