• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/79

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

79 Cards in this Set

  • Front
  • Back
and
Logical and.
and
Logical and.
as
Part of the with-as statement.
assert
Assert (ensure) that something is true.
break
Stop this loop right now.
class
Define a class.
continue
Don't process more of the loop, do it again.
def
Define a function.
del
Delete from dictionary.
elif
Else if condition.
else
Else condition.
except
If an exception happens, do this.
exec
Run a string as Python.
finally
Exceptions or not, finally do this no matter what.
for
Loop over a collection of things.
from
Importing specific parts of a module.
global
Declare that you want a global variable.
if
If condition.
import
Import a module into this one to use.
in
Part of for-loops. Also a test of X in Y.
is
Like == to test equality.
lambda
Create a short anonymous function.
not
Logical not.
or
Logical or.
pass
This block is empty.
print
Print this string.
raise
Raise an exception when things go wrong.
return
Exit the function with a return value.
try
Try this block, and if exception, go to except.
while
While loop.
with
With an expression as a variable do.
yield
Pause here and return to caller.
ESCAPE
DESCRIPTION
%d
Decimal integers (not floating point).
%i
Same as %d.
%o
Octal number.
%u
Unsigned decimal.
%x
Hexadecimal lowercase.
%X
Hexadecimal uppercase.
%e
Exponential notation, lowercase 'e'.
%E
Exponential notation, uppercase 'E'.
%f
Floating point real number.
%F
Same as %f.
%g
Either %f or %e, whichever is shorter.
%G
Same as %g but uppercase.
%c
Character format.
%r
Repr format (debugging format).
%s
String format.
%%
A percent sign.
+
Addition
-
Subtraction
*
Multiplication
**
Power of
/
Division
//
Floor division
%
String interpolate or modulus
Less than
>
Greater than
<=
Less than equal
>=
Greater than equal
=
Equal
!=
Not equal
<>
Not equal
( )
Parenthesis
[ ]
List brackets
{ }
Dict curly braces
@
At (decorators)
,
Comma
:
Colon
.
Dot
=
Assign equal
;
semi-colon

+=

Add and assign
+=
Subtract and assign
*=
Multiply and assign
/=
Divide and assign
//=
Floor divide and assign
%=
Modulus assign
**=
Power assign