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

"filtering" and "transforming" list comprehension combination of filtering and transforming: apply a statement to each of a list of values that pass a test
"filtering" list comprehension return each value from the source list that passes a test
"transforming" list comprehension apply statement to each value in the source list
define a function with arguments and no return value
define a function with no arguments and no return values
define a function with return values and no arguments
list comprehension operating on a file operate and/or filter each line from a file
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
sort a container of numbers sort numerically
sort a container of strings sort by character