bugl
bugl
HomeLearnPatternsSearch
HomeLearnPatternsSearch

Loading lesson path

Learn/Python/Reference and Practice
Python•Reference and Practice

Python Keywords

Concept visual

Python Keywords

Pointer walk
two pointers
leftright102132436485116
left=0
right=6
1
3

Start at both ends

Python has a set of keywords that are reserved words that cannot be used as variable names, function names, or any other identifiers:

Keyword

Description and

A logical operator as

To create an alias assert

For debugging async

Define an asynchronous function await

Wait for and get a result from an awaitable break

To break out of a loop case

Pattern in a match statement class

To define a class continue

To continue to the next iteration of a loop def

To define a function del

To delete an object elif

Used in conditional statements, same as else if else

Used in conditional statements except

Used with exceptions, what to do when an exception occurs

False

Boolean value, result of comparison operations finally Used with exceptions, a block of code that will be executed no matter if there is an exception or not for

To create a for loop from

To import specific parts of a module global

To declare a global variable if

To make a conditional statement import

To import a module in

To check if a value is present in a list, tuple, etc. is To test if two variables are equal lambda

To create an anonymous function match

Start a match statement (compare a value against cases)

None

Represents a null value nonlocal

To declare a non-local variable not

A logical operator or

A logical operator pass

A null statement, a statement that will do nothing raise

Previous

Python Study Plan

Next

Python Interview Questions