Edit Game
HS Python coding vocab
 Delete

Use commas to add multiple tags

 Private  Unlisted  Public




Delimiter between question and answer:

Tips:

  • No column headers.
  • Each line maps to a question.
  • If the delimiter is used in a question, the question should be surrounded by double quotes: "My, question","My, answer"
  • The first answer in the multiple choice question must be the correct answer.






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