Programming syntax, explained one concept at a time.
Focused guides on variables, data types, control flow, functions, classes, and the standard library — short references you can read and copy while you work.
- Syntax guides
- 4,175+
- Topics
- 14
- Browser tools
- 21
from dataclasses import dataclass
@dataclass
class Guide:
topic: str
minutes: int
def total_minutes(guides: list[Guide]) -> int:
return sum(guide.minutes for guide in guides)Dataclasses and type hints
Open guideBrowse by topic
Every category in the library, with the number of published guides.
Latest syntax guides
The four most recent guides, straight from the library.
MySQL 1406: Data too long for column
Strict mode rejects values wider than the column. Count characters against VARCHAR length, check charset bytes, and widen the column or validate input.
MySQL 1054: Unknown column in 'field list'
MySQL cannot resolve a column name in that statement. Qualify the table, check aliases and quoting, verify the schema you connected to, and fix ORDER BY.
Python: SSLCertVerificationError certificate verify failed
Python could not build a trusted chain to the server. Point OpenSSL at a current CA bundle, fix the missing intermediate, and keep verification on.
Rust E0061: this function takes 1 argument but 2 were supplied
E0061 counts arguments at the call site. Check the signature, method versus associated function, generic defaults, and trait impls that changed arity.
Browser developer tools
21 utilities that run entirely in your browser, with nothing sent to a server.