Skip to content
MEPX
Tests
Courses
Tutor
Reader
Get started
Tests
Courses
Tutor
Reader
Get started
Education
Python
Reference
Python reference
117 entries: what each one does, what it takes back, and an example you can run and change.
Filter the reference
Built-in functions
31
abs()
all()
any()
bool()
dict()
dir()
enumerate()
filter()
float()
help()
input()
int()
isinstance()
len()
list()
map()
max()
min()
open()
print()
range()
repr()
reversed()
round()
set()
sorted()
str()
sum()
tuple()
type()
zip()
String methods
23
str.upper()
str.lower()
str.casefold()
str.strip()
str.removeprefix()
str.removesuffix()
str.split()
str.splitlines()
str.join()
str.replace()
str.startswith()
str.endswith()
str.find()
str.count()
str.isdigit()
str.isalpha()
str.isalnum()
str.title()
str.capitalize()
str.zfill()
str.rjust()
str.format()
str.encode()
List methods
11
list.append()
list.extend()
list.insert()
list.remove()
list.pop()
list.clear()
list.index()
list.count()
list.sort()
list.reverse()
list.copy()
Dictionary methods
9
dict.get()
dict.keys()
dict.values()
dict.items()
dict.setdefault()
dict.update()
dict.pop()
dict.clear()
dict.fromkeys()
Set methods
8
set.add()
set.discard()
set.update()
set.union()
set.intersection()
set.difference()
set.symmetric_difference()
set.issubset()
Tuple methods
2
tuple.count()
tuple.index()
File methods
8
file.read()
file.readline()
file.readlines()
file.write()
file.writelines()
file.seek()
file.tell()
file.close()
Keywords
13
def
return
yield
lambda
class
pass
break
continue
global
nonlocal
with
assert
raise
Exception types
12
ValueError
TypeError
KeyError
IndexError
FileNotFoundError
OSError
ZeroDivisionError
AttributeError
NameError
AssertionError
StopIteration
RecursionError