norvig/pytudes
View on GitHub ↗ ★ 24,420 Jupyter Notebook
Python programs, usually short, of considerable difficulty, to perfect particular skills.
101 mentions on Hacker News by 79 people: 40 stories, 61 comments · first 2017-06-05 · latest 2026-09-17
20082026
-
https://github.com/norvig/pytudes/tree/main/ipynb Look at Norvig's solution - which are a good learning point for even those who are able to solve everything!
comment by vismit2000 · 2025-12-03 · in Ask HN: Is it OK to look at AoC solutions? -
Pytudes by Peter Norvig: https://github.com/norvig/pytudes
comment by vismit2000 · 2025-11-15 · in What is the most beautiful / highest quality code you've seen (or written)? -
pytudes: https://github.com/norvig/pytudes
comment by vismit2000 · 2025-08-25 · in Ask HN: Best codebases to study to learn software design? -
This is explored in more depth in one of Peter Norvig's pytude notebooks: https://github.com/norvig/pytudes/blob/main/ipynb/Economics....
comment by staplung · 2025-06-14 · in When random people give money to random other people (2017) -
It's there in form of chain: from itertools import chain flatten = chain.from_iterable Ref: pytudes - https://github.com/norvig/pytudes/blob/main/ipynb/Advent-202...
comment by vismit2000 · 2024-05-28 · in More Itertools -
Peter Norvig's work is great to learn from https://github.com/norvig/pytudes
comment by achanda358 · 2024-04-19 · in Ask HN: High quality Python scripts or small libraries to learn from -
…have acquired which has done wonders to retaining new concepts. * https://www.pythonmorsels.com/ * https://github.com/norvig/pytudes
comment by togusa2017 · 2024-03-08 · in Ask HN: How to build mastery in Python? -
each one of Peter Norvig's etudes at https://github.com/norvig/pytudes from the sudoku solver http://norvig.com/sudoku.html to things like "NPL in python" https://colab.research.google.com/github/norvig/pytudes/blob... ...…
comment by pas · 2024-02-07 · in SQL for data scientists in 100 queries -
Peter Norvig's notebooks: https://github.com/norvig/pytudes
comment by atomicnature · 2023-08-25 · in Ask HN: Where do I find good code to read? -
…Still very much worth a read, he goes through the whole problem solving through code process. https://github.com/norvig/pytudes
comment by sorenjan · 2023-08-24 · in Ask HN: Where do I find good code to read? -
…marvel as a master deftly disecting problems, in the same way you marvel at Peter Norvig's Pytudes https://github.com/norvig/pytudes , and sob as the wonders turn to clay in your ordinary hands. Luckily it has a squeaky little brute force…
comment by jodrellblank · 2023-07-22 · in Using Prolog in Windows NT Network Configuration (1996) -
…http://norvig.com/spell-correct.html Now dominated by notebooks, linked to from norvig.com: https://github.com/norvig/pytudes#pytudes-index-of-jupyter-i...
comment by e12e · 2023-07-20 · in Ask HN: Is SICP/HtDP still worth reading in 2023? Any alternatives? -
My personal goal is to get as close to Norvig as possible for general Python code: https://github.com/norvig/pytudes/blob/main/ipynb/Advent%20o... (short but exact comments, inline testing, good function and variable naming, overall good…
comment by PennRobotics · 2023-07-19 · in Advanced Python Mastery -
…output created, as well as the method for it. [0] Norvig's extremely cool pytudes, wordle example: https://github.com/norvig/pytudes/blob/main/ipynb/Wordle.ipy... [1] My not anywhere near as cool as Norvig's pytudes example:…
comment by benrutter · 2023-07-07 · in Git and Jupyter Notebooks Guide -
…* Laravel https://github.com/laravel/laravel Python * pytudes (notebooks) https://github.com/norvig/pytudes R * sf (ex of functional OOP) https://github.com/r-spatial/sf Ruby * Sequel https://github.com/jeremyevans/sequel/ * Sidekiq
comment by culi · 2023-06-17 · in Ask HN: What are some of the most elegant codebases in your favorite language? -
I knew Ellsberg rang a bell. I got to know about him from Peter Norvigs awesome [jupyter] notebooks: https://github.com/norvig/pytudes/blob/main/ipynb/Probabilit... . The probability ones are quite fun to go through and it's very…
comment by puika · 2023-06-16 · in Daniel Ellsberg has died -
…how lightweight and interactive this is. Related: Norvig's runnable intro probability notebooks at https://github.com/norvig/pytudes#pytudes-index-of-jupyter-i...
comment by abecedarius · 2023-05-14 · in Monte Carlo methods -
…manner (look at the ones in the Probability section) [1]. [0] https://greenteapress.com/wp/ [1] https://github.com/norvig/pytudes#pytudes-index-of-jupyter-i...
comment by sn9 · 2023-02-05 · in The Magic of Sampling, and Its Limitations -
Peter Norvig has written a good analysis with some interesting takeaways: https://github.com/norvig/pytudes/blob/main/ipynb/AlphaCode....
comment by kevmo314 · 2022-12-15 · in Deepmind’s AlphaCode conquers coding, performing as well as humans -
…iterate over input, operating on arrays/lists etc.). Something like Peter Norvig has in Python: https://github.com/norvig/pytudes/blob/main/ipynb/Advent%20o...
comment by ofrzeta · 2022-12-01 · in Advent of Code 2022 is nigh -
…https://greenteapress.com/wp/think-python-2e/ For code examples, I like Peter Norvig's pytudes: https://github.com/norvig/pytudes
comment by jonjacky · 2022-11-24 · in Ask HN: What are the best tutorial sites for Python? -
…is pure magic to me. Highly recommend it and also checkout his notebooks, unparalleled beauty: https://github.com/norvig/pytudes
comment by systemvoltage · 2022-11-14 · in Ask HN: Do you recall any book or course that made a topic finally click? -
…can't possibly be the answer. links: 1. https://i-kh.net/2022/04/22/my-lazy-wordle-strategy/ 2. https://github.com/norvig/pytudes/blob/main/ipynb/Wordle.ipy...
comment by meatmanek · 2022-06-01 · in Show HN: Can you lose at Wordle if you tried? -
Peter Norvig's python is so elegant: https://github.com/norvig/pytudes#pytudes-index-of-jupyter-i...
comment by maxmcd · 2022-05-02 · in Ask HN: What are your favorite examples of elegant software? -
…agree (and share the hope). In fact, earlier today I was thinking about Peter Norvig's "pytudes" ( https://github.com/norvig/pytudes ) as good examples of literate programming — and they are notebooks. Also, last weekend I picked up some…
comment by svat · 2022-03-23 · in Literate programming is much more than just commenting code -
In this case, it's not a matter of image formats, but simply a 404. https://github.com/norvig/pytudes/raw/5e745c392772d150b41462... Here's map4.png: https://github.com/norvig/pytudes/blob/main/ipynb/map4.png There doesn't seem to be a 5 or…
comment by enobrev · 2022-03-03 · in Split the States (2021) -
https://github.com/norvig/pytudes/issues/118 Norvig's Sudoku solver inspired me to make my own Wordle solver last month
comment by tbonza · 2022-03-02 · in Winning Wordle -
…of the "Norvig approach" to things, his Advent of Code solutions in IPython notebooks are fun: https://github.com/norvig/pytudes
comment by mattarm · 2022-02-07 · in A Retrospective on PAIP (2002) -
…insane. A couple of list comprehensions shouldn't scare you. Look above and beyond the details. [1] https://github.com/norvig/pytudes/blob/main/ipynb/Cheryl.ipy...
comment by systemvoltage · 2021-12-27 · in Ask HN: Good Python projects to read for modern Python? -
…at his solutions for advent of code [0] brings just so much learnings. Strongly recommend. [0] https://github.com/norvig/pytudes/blob/master/ipynb/Advent%2...
comment by jypepin · 2021-06-03 · in A Concrete Introduction to Probability (2018) -
…the other two probability notebooks: - Probability, Paradox, and the Reasonable Person Principle https://github.com/norvig/pytudes/blob/master/ipynb/Probabil... - Estimating Probabilities with Simulations…
comment by sillysaurusx · 2021-06-03 · in A Concrete Introduction to Probability (2018) -
Check out Peter Norvig's neat BASIC Interpreter https://github.com/norvig/pytudes/blob/master/ipynb/BASIC.ip...
comment by theodpHN · 2021-04-24 · in Resources for Amateur Compiler Writers -
…a "literate programming" system. Notable examples include Peter Norvig's œuvre (there's a list at https://github.com/norvig/pytudes#pytudes-index-of-jupyter-i... ). I find this a very comfortable and powerful medium for this form of…
comment by kragen · 2021-02-27 · in Noweb – A Simple, Extensible Tool for Literate Programming -
…ps://github.com/tuvtran/project-based-learning#python * https://github.com/karan/Projects-Solutions * https://github.com/norvig/pytudes * What do you automate with Python at home? - https://www.reddit.com/r/learnpython/comments/k5k1h0/what_…
comment by asicsp · 2021-02-09 · in Show HN: "100 Page Python Intro" eBook -
…task, I love how Norvig solved all these with just native libraries and the staples numpy/plt. [0]: https://github.com/norvig/pytudes/blob/master/requirements.t...
comment by monksdream · 2021-01-08 · in Peter Norvig's “pytudes” for Advent of Code 2020 -
…tracking, model deployment, live editing and scheduling for notebooks[1]. - [0]: https://github.com/norvig/pytudes#pytudes-index-of-jupyter-i... - [1]: https://iko.ai
comment by Jugurtha · 2020-10-05 · in Jupyter Notebooks Gallery -
Peter Norvig has provided some good examples here: https://github.com/norvig/pytudes In general, he has some examples of good idiomatic python on his site as well: https://norvig.com/
comment by naragon · 2020-04-06 · in Ask HN: Good sources for learning Python idioms? -
…years of Advent of Code they are available as notebooks in Peter Norvig's pytudes repository: https://github.com/norvig/pytudes
comment by sunaden · 2019-12-02 · in Advent of Code 2019 -
…[2] https://nbviewer.jupyter.org/github/norvig/pytudes/blob/mast... [3] https://github.com/norvig/pytudes [4] http://aima.cs.berkeley.edu/ [5] https://www.udacity.com/course/intro-to-artificial-intellige...
comment by sgentle · 2019-07-15 · in “10x engineers”: Stereotypes and research -
For example Peter Norvig does an exemplary job with jupyter notebooks for expository writings: https://github.com/norvig/pytudes
comment by arnioxux · 2019-05-08 · in Estimating Number of Jupyter Notebooks on Github -
https://mybinder.org/v2/gh/norvig/pytudes/master and https://github.com/norvig/pytudes/#pytudes to see what it looks like in the original repo (I am a project lead on binder)
comment by betatim · 2019-01-22 · in Binder – Turn a Git repo into a collection of interactive notebooks -
OP here. I really enjoyed reading through Peter Norvig's AoC solutions a while back: https://github.com/norvig/pytudes/blob/master/ipynb/Advent%2... I'm no Norvig, but I thought I'd try my hand at walking the reader through my own…
comment by fogleman · 2018-12-18 · in Advent of Code Python Solutions, Explained -
He also did one for 2017[0]. I imagine if he does this one it will end up in the same repo. [0] https://github.com/norvig/pytudes/blob/master/ipynb/Advent%2...
comment by kbirkeland · 2018-11-30 · in Advent of Code 2018 -
Peter Norvig did one for Python, and it's pretty cool: https://github.com/norvig/pytudes/blob/master/ipynb/BASIC.ip...
comment by vfinn · 2018-10-27 · in Show HN: I wrote a BASIC interpreter in Go -
…and calls them "pytudes" = "python" + "etudes", although they should be solvable in any language) https://github.com/norvig/pytudes Rosetta code also has a great selection of problems / solutions in various languages:…
comment by 2nlinked · 2018-10-23 · in Rust can be difficult to learn and frustrating, but it's also very exciting -
…the main benefit is that others can point errors and omissions. Peter Norvig does it too: https://github.com/norvig/pytudes/blob/master/ipynb/Economic... What you are simulating is just tiny part of the Economies of agglomeration…
comment by nabla9 · 2018-09-18 · in I simulated California housing and learned about simulators -
…Go through one of them and tell me it's not a good aid in teaching people concepts. [1]: https://github.com/norvig/pytudes/
comment by Cmerlyn · 2018-08-28 · in JupyterCon: I don't like Notebooks [slides]