Course
Simulator
More
Premium
Log in
Python Function Reference
Built-in functions
all
any
bool
callable
chr
dict
dir
float
frozenset
getattr
hasattr
hash
help
id
input
int
isinstance
issubclass
len
list
open
ord
print
range
repr
set
setattr
str
super
tuple
type
vars
String methods
format
str.capitalize
str.casefold
str.center
str.count
str.endswith
str.find
str.format
str.index
str.isalnum
str.isalpha
str.isdigit
str.islower
str.isspace
str.isupper
str.join
str.ljust
str.lower
str.lstrip
str.partition
str.removeprefix
str.removesuffix
str.replace
str.rfind
str.rjust
str.rstrip
str.split
str.splitlines
str.startswith
str.strip
str.title
str.upper
str.zfill
Numeric functions
abs
bin
divmod
hex
math.ceil
math.cos
math.degrees
math.e
math.exp
math.fabs
math.factorial
math.floor
math.gcd
math.isclose
math.log
math.log10
math.pi
math.pow
math.radians
math.sin
math.sqrt
math.tan
math.trunc
max
min
oct
pow
round
sum
Collections
collections.Counter
collections.Counter.most_common
collections.defaultdict
dict.clear
dict.fromkeys
dict.get
dict.items
dict.keys
dict.pop
dict.popitem
dict.setdefault
dict.update
dict.values
enumerate
list.append
list.clear
list.copy
list.count
list.extend
list.index
list.insert
list.pop
list.remove
list.reverse
list.sort
reversed
set.add
set.clear
set.copy
set.difference
set.discard
set.intersection
set.isdisjoint
set.issubset
set.issuperset
set.pop
set.remove
set.symmetric_difference
set.union
set.update
sorted
zip
Iteration functions
filter
functools.partial
functools.reduce
iter
itertools.chain
itertools.combinations
itertools.count
itertools.islice
itertools.permutations
itertools.product
map
next
Other modules
csv.reader
csv.writer
datetime.datetime.fromisoformat
datetime.datetime.now
datetime.datetime.strptime
json.dump
json.dumps
json.load
json.loads
random.choice
random.randint
random.random
random.shuffle
time.sleep
time.time
os module
os.getcwd
os.listdir
os.makedirs
os.path.exists
os.path.join
os.remove
Regular expressions
re.compile
re.findall
re.match
re.search
re.sub