Toggle Navigation
Games
Blog
Class PIN
Join for Free
Sign in
Toggle Navigation
Games
PIN
Join for Free
Blog
Pricing
Contact us
Help center
Sign in
Study
HS Python coding vocab
0
%
0
0
0
Back
Restart
Loop word, if conditions that follow are truthy, using this keyword will keep its statement running over and avoer
when
while
While
When
Oops!
Okay!
valid only when used with "def"; exits the function and returns the results
return
BACK
Back
Return
Oops!
Okay!
specifies code that should be run no matter what happens in the "try", "except" or "else" blocks
finally
final
last
lastly
Oops!
Okay!
used to modify a variable that isn't defined in a function but from a parent scope
nonlocal
parent
local
global
Oops!
Okay!
Object identity check: determines if 2 objects are exactly the same.
si
is
Is
IS
Oops!
Okay!
Context manager, defines code to be executed within the context manager's scope.
WITH
within
with
WITHIN
Oops!
Okay!
defines a function without a name and with only 1 statement
delta
Lambda
lambda
Delta
Oops!
Okay!
Defines a class in python, powerful in object-oriented programming
class
Class
Group
group
Oops!
Okay!
remove indexes from a list or dictionary, or unsets a variable
delete
rid
remove
del
Oops!
Okay!
indicates a block intentionally left blank
Pass
skip
pass
Skip
Oops!
Okay!
raises an exception
raise
lifts
raises
top
Oops!
Okay!
defines an asynchronous function
sync
asynch
asynchronous
async
Oops!
Okay!
code that might raise an exception
except
try
next
do
Oops!
Okay!
Used with "import" and "from" to change the name of what is being imported
as
switch
alias
change
Oops!
Okay!
Stops the current loop and moves to next step
NEXT
CONTINUE
continue
Next
Oops!
Okay!
Used to include a module into your Python program
import
Bringin
bringin
IMPORT
Oops!
Okay!
Used with import to bring in something from a specific module.
and
next
with
from
Oops!
Okay!
works like "if" statement but can only be used after an "if" or another of the same statement
Elif
ElseIf
else if
elif
Oops!
Okay!
Connects 2 expressions and evaluates for true or false
OR
Or
or
ore
Oops!
Okay!
Gives the opposite Boolean value of a variable
not
other
Other
Not
Oops!
Okay!
used to define a function or method of class
define
def
DEF
Define
Oops!
Okay!
Most common loop, often used with "in"
loop
Loop
FOR
for
Oops!
Okay!
returns a "generator" from a function
Yield
YEILD
yield
yeild
Oops!
Okay!
Starts a conditional statement if the statement is true.
then
Then
IF
if
Oops!
Okay!
Used to determine if both left and righ operands are truthy or falsy
BOTH
both
AND
and
Oops!
Okay!
results in a no-op if the expression is truthy or an "AssertionError" if the expression is falsy
assert
express
true
error
Oops!
Okay!
used to modify a variable that isn't defined in a function but in a global scope
modify
define
scope
global
Oops!
Okay!
containmennt check, is a element included in the data
in
out
included
with
Oops!
Okay!
Boolan statement, opposite of true
fulse
False
false
not
Oops!
Okay!
An empty string of code
none
None
blank
blanck
Oops!
Okay!
Boolean statement: opposite of false.
yes
true
True
tru
Oops!
Okay!
Exits a loop early
stop
BREAK
break
Stop
Oops!
Okay!
Denotes blocks of code that should be run when "if" and "elif" statements are falsy
Else
Elsethen
ELSETHEN
else
Oops!
Okay!
defines the point in the function where control is given back to the event loop
back
event
stop
await
Oops!
Okay!
Used with "try" to define what happens when specific exceptions are raised
except
continue
expand
go
Oops!
Okay!
Your experience on this site will be improved by allowing cookies.
Allow cookies