Hacker GitHub

← All repos

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

Mentions per year 101 mentions · busiest year 2022 (22)
20082026
  1. ▲ 2
    Integer Palindromes – 2026 AIME I Problems/Problem 2
    story by vismit2000 · 2026-09-17 · 0 comments
  2. ▲ 1
    Project Euler Problems 1–100
    story by vismit2000 · 2026-07-20 · 1 comment
  3. ▲ 4
    Truncatable Primes
    story by vismit2000 · 2026-01-09 · 0 comments
  4. ▲ 8
    The Traveling Salesperson Problem (Modernized)
    story by vismit2000 · 2025-12-06 · 1 comment
  5. ▲ 51
    Advent of Code 2025: The AI Edition – By Peter Norvig
    story by vismit2000 · 2025-12-06 · 15 comments
  6. 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?
  7. Pytudes by Peter Norvig: https://github.com/norvig/pytudes
  8. ▲ 2
    Split the States Riddle
    story by vismit2000 · 2025-10-22 · 0 comments
  9. pytudes: https://github.com/norvig/pytudes
  10. This is explored in more depth in one of Peter Norvig's pytude notebooks: https://github.com/norvig/pytudes/blob/main/ipynb/Economics....
  11. ▲ 161
    The Languages of English, Math, and Programming
    story by stereoabuse · 2024-10-19 · 47 comments
  12. ▲ 290
    LLMs, Theory of Mind, and Cheryl's Birthday
    story by stereoabuse · 2024-10-04 · 142 comments
  13. ▲ 2
    Counting Cluster Sizes
    story by nabla9 · 2024-06-21 · 0 comments
  14. 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
  15. Peter Norvig's work is great to learn from https://github.com/norvig/pytudes
  16. ▲ 2
    Norvig's 2023 Advent of Code
    story by stereoabuse · 2024-03-28 · 0 comments
  17. …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?
  18. 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... ...…
  19. ▲ 2
    Bicycling Statistics
    story by tosh · 2023-11-28 · 0 comments
  20. ▲ 5
    Ask HN: How to deal with the short vs. long function argument
    story by da39a3ee · 2023-11-08 · 9 comments
  21. 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?
  22. …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?
  23. …what I would expect from a junior dev who started learning the language a couple weeks ago. [1]: https://github.com/norvig/pytudes/blob/952675ffc70f3632e70a7... [2]: https://github.com/norvig/pytudes/blob/952675ffc70f3632e70a7...
    comment by hk__2 · 2023-08-24 · in Pytudes
  24. Kinda hard to answer as that depends on your definition of new. But most likely yes, https://github.com/norvig/pytudes/commits/main
    comment by benjaminl · 2023-08-24 · in Pytudes
  25. ▲ 270
    Pytudes
    story by sonabinu · 2023-08-23 · 39 comments
  26. …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…
  27. …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...
  28. 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
  29. …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
  30. …* 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
  31. 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
  32. …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
  33. …need to see people code in clojure live to understand it. https://www.parens-of-the-dead.com/ https://github.com/norvig/pytudes
    comment by monsieurbanana · 2023-04-10 · in REBL
  34. …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...
  35. ▲ 606
    Peter Norvig critically reviews AlphaCode’s code quality
    story by wrycoder · 2022-12-16 · 350 comments
  36. ▲ 1
    Generative Problem Solving with Large Language Models
    story by Y_Y · 2022-12-15 · 0 comments
  37. Peter Norvig has written a good analysis with some interesting takeaways: https://github.com/norvig/pytudes/blob/main/ipynb/AlphaCode....
  38. ▲ 1
    Norvig’s Advent of Code 2022
    story by andsoitis · 2022-12-13 · 0 comments
  39. ▲ 2
    Generative Problem Solving with Large Language Models
    story by EntICOnc · 2022-12-10 · 0 comments
  40. ▲ 3
    Generative Problem Solving with Large Language Models
    story by kevmo314 · 2022-12-09 · 0 comments
  41. …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
  42. …https://greenteapress.com/wp/think-python-2e/ For code examples, I like Peter Norvig's pytudes: https://github.com/norvig/pytudes
  43. ▲ 3
    Ask HN: Where do I find good and comprehensible code to read and learn?
    story by curious16 · 2022-11-21 · 3 comments
  44. …is pure magic to me. Highly recommend it and also checkout his notebooks, unparalleled beauty: https://github.com/norvig/pytudes
  45. ▲ 1
    Riddler Battle Royale
    story by tosh · 2022-10-26 · 0 comments
  46. ▲ 2
    Making and Solving Mazes (2018)
    story by Tomte · 2022-08-12 · 0 comments
  47. …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...
  48. Peter Norvig's python is so elegant: https://github.com/norvig/pytudes#pytudes-index-of-jupyter-i...
  49. …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…
  50. ▲ 2
    A Concrete Introduction to Probability (using Python) norvig/pytudes
    story by mariuz · 2022-03-09 · 1 comment