References
Quick-reference docs for every programming language. Browse references by tutorial.
7 / 7 items
🐍
Python
7python-printfunctionprint()
Print objects to the console.
print(*objects, sep=' ', end='\n', file=sys.stdout, flush=False)
Open page
python-lenfunctionlen()
Return the length of a sequence or collection.
len(obj)
Open page
python-rangefunctionrange()
Generate a sequence of numbers.
range(start=0, stop, step=1)
Open page
python-inputfunctioninput()
Read a line of input from the user.
input(prompt=None)
Open page
python-str-methodsmethodString Methods
Common operations on strings.
str.upper() / str.lower() / str.strip() / str.split() / str.replace()
Open page
python-list-methodsmethodList Methods
Operations on lists (mutable sequences).
list.append(x) / list.pop() / list.sort() / list.reverse()
Open page
python-dictconceptDictionaries
Key-value pairs, fast lookups.
{} / dict()
Open page