⚡
Quick TrainerPython Built-in Functions
Learn what Python's most common built-in functions do.
Code38 items3 levelsDifficulty 2/5
Free · no signup · works on any device
Levels
Start easy — harder levels unlock as you improve, or jump ahead anytime.
1
Essentials
13 items
2
Common
13 items
3
Advanced
12 items
All 38 cards
print()
Outputs text to the console
len()
Returns the length of an object
type()
Returns the type of an object
int()
Converts a value to an integer
str()
Converts a value to a string
float()
Converts a value to a float
input()
Reads a line of user input
range()
Generates a sequence of numbers
list()
Creates a list
bool()
Converts a value to a boolean
abs()
Returns the absolute value
max()
Returns the largest item
min()
Returns the smallest item
sum()
Adds up items in an iterable
sorted()
Returns a sorted list
round()
Rounds a number to given digits
dict()
Creates a dictionary
set()
Creates a set
tuple()
Creates a tuple
enumerate()
Pairs items with their index
zip()
Combines iterables element-wise
map()
Applies a function to each item
filter()
Filters items by a function
reversed()
Returns a reversed iterator
open()
Opens a file
format()
Formats a value into a string
isinstance()
Checks if an object is an instance of a type
getattr()
Gets an attribute of an object
setattr()
Sets an attribute of an object
hasattr()
Checks if an object has an attribute
iter()
Returns an iterator from an iterable
next()
Gets the next item from an iterator
any()
True if any item is truthy
all()
True if all items are truthy
eval()
Evaluates a string as an expression
id()
Returns the identity of an object
hash()
Returns the hash value of an object
repr()
Returns a printable representation of an object
Keep going

Python String & List Methods
Learn what common Python string and list methods do and recall them by name.
Code34 items

Big-O Time Complexity of Common Operations & Algorithms
Test your knowledge of the time complexity of common data structure operations and classic algorithms.
Code35 items

