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;
47 Cards in this Set
- Front
- Back
not
|
A negation as a preformed operation
|
|
as
|
Used in a with statement to define the alias to assign each result of X to.
|
|
with
|
Wrap the execution of a block with methods defined by a context manager
|
|
assert
|
The assert statement verifies that the expression resolves to be true. If it does not, it will raise an AssertionError, with an optional expression2
|
|
if
|
A conditional execution which executes some code if the statement is true.
|
|
pass
|
Nullifies the operation, when this is executed, nothing happens.
|
|
yield
|
Return a generator object (like a list or tuple) instead of a static object.
|
|
break
|
Will exit out of the nearest loop
|
|
except
|
When a try statement fails, the except statement catches it and returns
|
|
import
|
The import statement initializes the external module so that it's functions can be used in the current environment.
|
|
class
|
A object that contains functions and can be instantiated
|
|
exec
|
Allows for the dynamic execution of code
|
|
in
|
When used with an if, allows for the code to loop through all the members of a generator object
|
|
raise
|
Used to call an exception which can be customized per situation
|
|
continue
|
When encountered, causes the application to skip the rest of the current loop
|
|
finally
|
The finally statement is the cleanup function in the 'try' statement
|
|
is
|
Compares the identity of two objects. Two objects referencing the same memory location will return true, but objects that are 'equal' will not.
|
|
def
|
defines a function
|
|
lambda
|
creates an anonymous function
|
|
try
|
specifies exception handlers and/or cleanup code for a group of statements.
|
|
none
|
The absence of a value
|
|
[ ]
|
lists
|
|
( )
|
tuple
|
|
\a
|
ASCII Bell
|
|
\b
|
Backspace
|
|
\f
|
ASCII Formfeed
|
|
\r
|
Carriage return
|
|
\v
|
Vertical tab
|
|
%d
|
signed decimal
|
|
%i
|
signed decimal
|
|
%o
|
octal
|
|
%x
|
Signed Hex, lowercase
|
|
%X
|
Signed hex, uppercase
|
|
%e
|
floating point in exponential format
|
|
%E
|
floating point in exponential format, uppercase
|
|
%f
|
floating point in exponential format, lowercase
|
|
%F
|
floating point in exponential format, Uppercase
|
|
%g
|
Floating point format, Lowercase exponential format if less than -4 , decimal format otherwise
|
|
%G
|
Floating point format. Uppercase exponential format if less than -4, decimal format otherwise
|
|
%c
|
Single Character
|
|
%r
|
String token, coverts using repr( ), "x"
|
|
%s
|
String token, converts using str( ), "x"
|
|
%%
|
No argument converted, results in '%' in the result
|
|
del
|
The del statement is a way to remove an item from a list, given it's index instead of it's value:
|
|
from
|
This is the root of the import statement
|
|
not
|
Not creates a negation of the performed operation
|
|
while
|
The while loop continues until the expression becomes false
|