Python Recipes
Fedor Obraztsov
Developer Tools · 4+
Free
Preview · iPhone
Preview · iPad
About this app
Tap Run and the real output appears right under the code, so you know it works before it goes into your project. Over 90% of the examples are runnable. No IDE, no setup.
You know what you need, but not the exact syntax:
• How do I drop duplicates from a list and keep the order?
• How do I add a month to a date?
• How do I pull a number out of a string with a regex?
Each has a short working example here: one task, with comments on the tricky parts.
WHAT'S INSIDE
• 370+ Python examples in 22 sections: strings, dicts, classes, generators, match statements, exceptions, files, design patterns.
• Change any example and run your version, or save your own snippets.
• Output you can read at a glance: values are printed with their names, like total = 42.
• Search looks inside the code: type defaultdict to find every example that uses it.
• 200+ keyword reference entries: tap a word in the code to look it up.
• 200+ SQL queries, from JOIN and GROUP BY to window functions; more than half run on a practice database.
• What changed from Python 3.0 to 3.13, with before-and-after code: dict merging with | and |=, f"{x=}", asyncio.run, except*.
FREE, NO ADS
More than 320 examples and queries, Python and SQL combined, are free, and you can browse the full keyword reference. Every day you get 12 runs (Python and SQL together) and 12 edits; tapping a word in the code opens up to 12 reference entries.
The full version adds every example and query, lifts the limits on edits and on your own examples, and gives up to 30 Python and 80 SQL runs a day. One-time purchase, no subscription.
Works on iPhone, iPad and Mac. Everything except running code works offline.
Maintained since 2015.
What's New
Version 4.16
5 days ago
• Code comments in the examples now follow the app language: Russian and Chinese added. • // (floor division) is no longer colored as a comment. • iPhone in landscape: the buttons sit at the screen edge, leaving more room for code. • Faster search, example pages and launch.
Community ratings
Be the first to rate this app
Sign in to leave a rating.