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

exit() terminate execution immediately
float() return float object based on argument
input() return string of user input from keyboard
int() return integer object based on argument
isinstance() check to see if an object is of a particular type
len() integer length of a string or container
open() construct a file object
pprint.pprint() print a structure in readable format
print() write text to the screen
range() generate an iterator of integers
round() round a number to specified decimal places
sorted() return a sorted list of items from a container
sorted() with dict return a sorted list of keys from a dict
sorted() with key=dict.get return a list of dict keys sorted by value
str() convert any object to a string
sum(), min(), max() calculate a value from a container of numbers
type() return type of any object