pythonreference.com
search statements, functions, methods, exceptions*
hide categoriesexit() | 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 |