We use cookies to enhance your browsing experience.

Learn More
Back to Cheatsheets

Python Basics

Core Python syntax and types.

Data Types
str
String
Immutable text sequence.
Copied!
list
List
Mutable sequence.
Copied!
dict
Dictionary
Key-value mapping.
Copied!
tuple
Tuple
Immutable sequence.
Copied!
Control Flow
if/elif/else
Conditional
Copied!
for x in iter
For Loop
Copied!
while cond
While Loop
Copied!
try/except
Exception
Copied!
25+Total Tools
Operations
4Languages
100%Privacy

We use cookies to enhance your experience and serve personalized ads.