Python data types cheat sheet
admin · 26 Sep 2026 · 1 min read
Core types
| Type | Example | Mutable? |
|---|---|---|
| int | 42 | No |
| float | 3.14 | No |
| str | "FuGen" | No |
| list | [1, 2, 3] | Yes |
| dict | {"a": 1} | Yes |
| tuple | (1, 2) | No |
Tips
- Use f-strings for formatting:
f"Hello {name}". - Use
type(x)to check a type while debugging.
name = "FuGen Academy"\nprint(f"Welcome to {name}!")