Code you can read. Output you can check.
Learn programming from examples you can actually run.
Clear explanations, complete code and the exact output — on the language, data structures, networking, concurrency, databases and data analysis.
New here?
Start with the basics, in this order.
How every page works
nums = [4, 8, 15, 16, 23, 42]
evens = [n for n in nums if n % 2 == 0]
print(evens)
[4, 8, 16, 42]
Concept → complete example → exact output. Nothing skipped.
127 tutorials
Standard Library Modules
The standard library, one module at a time.
See the whole section →Recently updated
Browse everything →All topics
Everything on the site, grouped the way you'd learn it.