statements operators functions string methods set methods tuple methods dict methods file methods list methods exceptions exception types comprehensions multidimensionals os lambdas subprocess
Intro to Python

Session 1 Session 2 Session 3 Session 4 Session 5 Session 6 Session 7 Session 8 Session 9




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
len() with a list, tuple or set return integer length of a list, tuple or set
set.add() add an item to end of set
set.difference() return a set of items in this set not found in another container
set.intersection() return a set of items in this set in common with values in other container
set.union() return a set of items in this set combined with values in other container