See all functions in a
module:
dir(module_name)
Module:
Get help with a function in a module:
help(module_name.function_name)
You can import your own Python file as a module
to get all your custom functions. Make sure that the imported file is in the same
directory as the importing file.
Operator:
Type conversion:
int(input()) will return
an integer instead of a
string
If statement:
No If required:
The two are
equivalent, but one is
shorter.
No if required
More str operators:
Compare str
like a dictionary
See if one str is
inside another
Left to right: Starts at 0
Right to left: Starts at -1
Str: Indexing and Slicing
NOT INCLUDING THE
END INDEX
Always from left to
right
Get all of the
string
String cannot be changed. Will result in an
error.
You can still manipulate segments
of the string (e.g. adding them
together)