Python Spellbook

As a Python Wizard you’d add a wide range of spells to your spelbook and know what they do and how to use the. If not sure, use help(), e.g. help(str.split):

print()
input()
help()
int()
float()
arithmetical operators: (+, -, /, *, %, //, **)
str()
indexing
slicing
str.lower()
str.upper()
str.strip()
str.lstrip()
str.rstrip()
str.split()
str.join()
str.startswith()
str.endswith()
len()
in operator
f-string
multiline strings (""" or ''')
bool()
True
False
None
if
if-elif
if-elif-else
and
or
not
while
for
break
continue
range()
pass
def
tuple()
list()
set()
dict()
open()
with open(...) as ...
sys.argv
tryexcept
try-except-finally
clean-code
enumerate()