Keywords Flashcards
1
Q
and
A
Logical and
2
Q
as
A
Part of the with-as statement
3
Q
assert
A
Assert (ensure) that something is true
4
Q
break
A
Stop this loop right now
5
Q
class
A
Define a class
6
Q
continue
A
Don’t process more of the loop, go back to the top and run it again
7
Q
def
A
Define a function
8
Q
del
A
Delete from dictionary
9
Q
elif
A
Else if condition
10
Q
else
A
Else condition
11
Q
except
A
If an exception happens, do this
12
Q
exec
A
Run a string as Python
13
Q
finally
A
Exceptions or not, finally do this no matter what
14
Q
for
A
Loop over a collection of things
15
Q
from
A
Import specific parts of module