Python
Python Reference
Every essential Python built-in and method with examples.
🛠️ Built-in Functions
🖨️
print()
Output text or values to the console or file.
Read Reference →
📏
len()
Return the number of items in any sequence. O(1).
Read Reference →
🔢
range()
Generate a lazy sequence of integers for loops.
Read Reference →
⌨️
input()
Read a line of text from the user. Always returns str.
Read Reference →
📋 List Methods
🧵 String Methods
✂️
split()
Break a string into a list. Default splits on whitespace.
Read Reference →
🔗
join()
Join an iterable of strings with a separator. Reverse of split.
Read Reference →
🧹
strip()
Remove leading and trailing whitespace or custom characters.
Read Reference →
📝
format()
Format strings with placeholders and alignment.
Read Reference →
🔁
replace()
Return a copy with substring replacements applied.
Read Reference →