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
-
▲ 2
Integer Palindromes – 2026 AIME I Problems/Problem 2story by vismit2000 · 2026-09-17 · 0 comments
-
▲ 1
Project Euler Problems 1–100story by vismit2000 · 2026-07-20 · 1 comment
-
▲ 4
Truncatable Primesstory by vismit2000 · 2026-01-09 · 0 comments
-
▲ 8
The Traveling Salesperson Problem (Modernized)story by vismit2000 · 2025-12-06 · 1 comment
-
▲ 51
Advent of Code 2025: The AI Edition – By Peter Norvigstory by vismit2000 · 2025-12-06 · 15 comments
-
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)? -
▲ 2
Split the States Riddlestory by vismit2000 · 2025-10-22 · 0 comments
-
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) -
▲ 161
The Languages of English, Math, and Programmingstory by stereoabuse · 2024-10-19 · 47 comments
-
▲ 290
LLMs, Theory of Mind, and Cheryl's Birthdaystory by stereoabuse · 2024-10-04 · 142 comments
-
▲ 2
Counting Cluster Sizesstory by nabla9 · 2024-06-21 · 0 comments
-
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 -
▲ 2
Norvig's 2023 Advent of Codestory by stereoabuse · 2024-03-28 · 0 comments
-
…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 -
▲ 2
Bicycling Statisticsstory by tosh · 2023-11-28 · 0 comments
-
▲ 5
Ask HN: How to deal with the short vs. long function argumentstory by da39a3ee · 2023-11-08 · 9 comments
-
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? -
▲ 270
Pytudesstory by sonabinu · 2023-08-23 · 39 comments
-
…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 -
▲ 606
Peter Norvig critically reviews AlphaCode’s code qualitystory by wrycoder · 2022-12-16 · 350 comments
-
▲ 1
Generative Problem Solving with Large Language Modelsstory by Y_Y · 2022-12-15 · 0 comments
-
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 -
▲ 1
Norvig’s Advent of Code 2022story by andsoitis · 2022-12-13 · 0 comments
-
▲ 2
Generative Problem Solving with Large Language Modelsstory by EntICOnc · 2022-12-10 · 0 comments
-
▲ 3
Generative Problem Solving with Large Language Modelsstory by kevmo314 · 2022-12-09 · 0 comments
-
…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? -
▲ 3
Ask HN: Where do I find good and comprehensible code to read and learn?story by curious16 · 2022-11-21 · 3 comments
-
…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? -
▲ 1
Riddler Battle Royalestory by tosh · 2022-10-26 · 0 comments
-
▲ 2
Making and Solving Mazes (2018)story by Tomte · 2022-08-12 · 0 comments
-
…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 -
▲ 2
A Concrete Introduction to Probability (using Python) norvig/pytudesstory by mariuz · 2022-03-09 · 1 comment