pythonreference.com
search statements, functions, methods, exceptions*
hide categories'for' with a list, tuple or set | iterate over each item in a container |
'in' membership test with list, set, tuple | return True if item is in a container, False otherwise |
+ with lists or tuples | concatenate two lists or tuples |
file .read() | read whole file as a single string |
file .readlines() | read a file as a list of strings |
len() with a list, tuple or set | return integer length of a list, tuple or set |
list.append() | add an item to end of list |
range() | generate an iterator of integers |
set.add() | add an item to end of set |
slice with a list or tuple | select items from a list or tuple by index |
sorted() | return a sorted list of items from a container |
str.splitlines() | split a "multiline" string on newline |
subscript with a list or tuple | select an item from a list or tuple |
sum(), min(), max() | calculate a value from a container of numbers |