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