pytudes/README.md

115 lines
26 KiB
Markdown
Raw Normal View History

2020-04-14 19:57:30 +02:00
2017-03-01 06:48:14 +01:00
# pytudes
2017-11-21 19:51:14 +01:00
"An *étude* (a French word meaning *study*) is an instrumental musical composition, usually short, of considerable difficulty, and designed to provide practice material for perfecting a particular musical skill." — [Wikipedia](https://en.wikipedia.org/wiki/%C3%89tude)
2017-03-25 02:57:19 +01:00
2019-09-24 22:39:59 +02:00
This project contains **pytudes**—Python programs, usually short, for perfecting programming skills.
2017-10-23 19:48:04 +02:00
2020-04-14 19:57:30 +02:00
Some programs are in Jupyter (`.ipynb`) notebooks, some in `.py` files. For each notebook you can click on:
- [CO](https://colab.research.google.com) to **run** the file on Colab
- [DN](https://deepnote.com) to **run** the notebook on DeepNote
- [MY](https://mybinder.org) to **run** the notebook on MyBinder
- [NB](https://nbviewer.jupyter.org/) to **view** the notebook on NBViewer
- **The title** to **view** the notebook on github, and **download** or **fork** it.
2018-11-14 17:43:09 +01:00
2017-12-02 19:53:35 +01:00
# Index of Jupyter (IPython) Notebooks
2017-03-25 02:57:19 +01:00
2020-04-14 19:57:30 +02:00
|Run|Programming Examples|
|---|--|
2020-04-14 20:05:00 +02:00
| [CO](https://colab.research.google.com/github/googlecolab/colabtools/Advent-2018.ipynb) [DN](https://beta.deepnote.org/launch?template=python_3.6&url=https%3A%2F%2Fgithub.com%2Fnorvig%2Fpytudes%2FAdvent-2018.ipynb) [MY](https://mybinder.org/v2/gh/norvig/pytudes/master) [NB](https://nbviewer.jupyter.org/github/norvig/pytudes/Advent-2018.ipynb) | **[Advent of Code 2018](ipynb/Advent-2018.ipynb)** |
| [CO](https://colab.research.google.com/github/googlecolab/colabtools/Advent%202017.ipynb) [DN](https://beta.deepnote.org/launch?template=python_3.6&url=https%3A%2F%2Fgithub.com%2Fnorvig%2Fpytudes%2FAdvent%202017.ipynb) [MY](https://mybinder.org/v2/gh/norvig/pytudes/master) [NB](https://nbviewer.jupyter.org/github/norvig/pytudes/Advent%202017.ipynb) | **[Advent of Code 2017](ipynb/Advent%202017.ipynb)** |
| [CO](https://colab.research.google.com/github/googlecolab/colabtools/Advent%20of%20Code.ipynb) [DN](https://beta.deepnote.org/launch?template=python_3.6&url=https%3A%2F%2Fgithub.com%2Fnorvig%2Fpytudes%2FAdvent%20of%20Code.ipynb) [MY](https://mybinder.org/v2/gh/norvig/pytudes/master) [NB](https://nbviewer.jupyter.org/github/norvig/pytudes/Advent%20of%20Code.ipynb) | **[Advent of Code 2016](ipynb/Advent%20of%20Code.ipynb)** |
| [CO](https://colab.research.google.com/github/googlecolab/colabtools/Project%20Euler%20Utils.ipynb) [DN](https://beta.deepnote.org/launch?template=python_3.6&url=https%3A%2F%2Fgithub.com%2Fnorvig%2Fpytudes%2FProject%20Euler%20Utils.ipynb) [MY](https://mybinder.org/v2/gh/norvig/pytudes/master) [NB](https://nbviewer.jupyter.org/github/norvig/pytudes/Project%20Euler%20Utils.ipynb) | **[Project Euler Utilities](ipynb/Project%20Euler%20Utils.ipynb)** |
| [CO](https://colab.research.google.com/github/googlecolab/colabtools/PropositionalLogic.ipynb) [DN](https://beta.deepnote.org/launch?template=python_3.6&url=https%3A%2F%2Fgithub.com%2Fnorvig%2Fpytudes%2FPropositionalLogic.ipynb) [MY](https://mybinder.org/v2/gh/norvig/pytudes/master) [NB](https://nbviewer.jupyter.org/github/norvig/pytudes/PropositionalLogic.ipynb) | **[Translating English Sentences into Propositional Logic Statements](ipynb/PropositionalLogic.ipynb)** |
| [CO](https://colab.research.google.com/github/googlecolab/colabtools/Beal.ipynb) [DN](https://beta.deepnote.org/launch?template=python_3.6&url=https%3A%2F%2Fgithub.com%2Fnorvig%2Fpytudes%2FBeal.ipynb) [MY](https://mybinder.org/v2/gh/norvig/pytudes/master) [NB](https://nbviewer.jupyter.org/github/norvig/pytudes/Beal.ipynb) | **[Beal's Conjecture Revisited](ipynb/Beal.ipynb)** |
| [CO](https://colab.research.google.com/github/googlecolab/colabtools/WWW.ipynb) [DN](https://beta.deepnote.org/launch?template=python_3.6&url=https%3A%2F%2Fgithub.com%2Fnorvig%2Fpytudes%2FWWW.ipynb) [MY](https://mybinder.org/v2/gh/norvig/pytudes/master) [NB](https://nbviewer.jupyter.org/github/norvig/pytudes/WWW.ipynb) | **[WWW: Who Will Win (NBA Title)?](ipynb/WWW.ipynb)** |
| [CO](https://colab.research.google.com/github/googlecolab/colabtools/Pickleball.ipynb) [DN](https://beta.deepnote.org/launch?template=python_3.6&url=https%3A%2F%2Fgithub.com%2Fnorvig%2Fpytudes%2FPickleball.ipynb) [MY](https://mybinder.org/v2/gh/norvig/pytudes/master) [NB](https://nbviewer.jupyter.org/github/norvig/pytudes/Pickleball.ipynb) | **[Pickleball Tournament](ipynb/Pickleball.ipynb)** |
| [CO](https://colab.research.google.com/github/googlecolab/colabtools/Dice%20Baseball.ipynb) [DN](https://beta.deepnote.org/launch?template=python_3.6&url=https%3A%2F%2Fgithub.com%2Fnorvig%2Fpytudes%2FDice%20Baseball.ipynb) [MY](https://mybinder.org/v2/gh/norvig/pytudes/master) [NB](https://nbviewer.jupyter.org/github/norvig/pytudes/Dice%20Baseball.ipynb) | **[Dice Baseball](ipynb/Dice%20Baseball.ipynb)** |
| [CO](https://colab.research.google.com/github/googlecolab/colabtools/Life.ipynb) [DN](https://beta.deepnote.org/launch?template=python_3.6&url=https%3A%2F%2Fgithub.com%2Fnorvig%2Fpytudes%2FLife.ipynb) [MY](https://mybinder.org/v2/gh/norvig/pytudes/master) [NB](https://nbviewer.jupyter.org/github/norvig/pytudes/Life.ipynb) | **[Conway's Game of Life](ipynb/Life.ipynb)** |
| [CO](https://colab.research.google.com/github/googlecolab/colabtools/Sierpinski.ipynb) [DN](https://beta.deepnote.org/launch?template=python_3.6&url=https%3A%2F%2Fgithub.com%2Fnorvig%2Fpytudes%2FSierpinski.ipynb) [MY](https://mybinder.org/v2/gh/norvig/pytudes/master) [NB](https://nbviewer.jupyter.org/github/norvig/pytudes/Sierpinski.ipynb) | **[A Chaos Game with Triangles](ipynb/Sierpinski.ipynb)** |
| [CO](https://colab.research.google.com/github/googlecolab/colabtools/Maze.ipynb) [DN](https://beta.deepnote.org/launch?template=python_3.6&url=https%3A%2F%2Fgithub.com%2Fnorvig%2Fpytudes%2FMaze.ipynb) [MY](https://mybinder.org/v2/gh/norvig/pytudes/master) [NB](https://nbviewer.jupyter.org/github/norvig/pytudes/Maze.ipynb) | **[Generating Mazes](ipynb/Maze.ipynb)** |
| [CO](https://colab.research.google.com/github/googlecolab/colabtools/TwelveBalls.ipynb) [DN](https://beta.deepnote.org/launch?template=python_3.6&url=https%3A%2F%2Fgithub.com%2Fnorvig%2Fpytudes%2FTwelveBalls.ipynb) [MY](https://mybinder.org/v2/gh/norvig/pytudes/master) [NB](https://nbviewer.jupyter.org/github/norvig/pytudes/TwelveBalls.ipynb) | **[Weighing Twelve Balls](ipynb/TwelveBalls.ipynb)** |
| [CO](https://colab.research.google.com/github/googlecolab/colabtools/Cant-Stop.ipynb) [DN](https://beta.deepnote.org/launch?template=python_3.6&url=https%3A%2F%2Fgithub.com%2Fnorvig%2Fpytudes%2FCant-Stop.ipynb) [MY](https://mybinder.org/v2/gh/norvig/pytudes/master) [NB](https://nbviewer.jupyter.org/github/norvig/pytudes/Cant-Stop.ipynb) | **[Can't Stop](ipynb/Cant-Stop.ipynb)** |
| [CO](https://colab.research.google.com/github/googlecolab/colabtools/Bike%20Speed%20versus%20Grade.ipynb) [DN](https://beta.deepnote.org/launch?template=python_3.6&url=https%3A%2F%2Fgithub.com%2Fnorvig%2Fpytudes%2FBike%20Speed%20versus%20Grade.ipynb) [MY](https://mybinder.org/v2/gh/norvig/pytudes/master) [NB](https://nbviewer.jupyter.org/github/norvig/pytudes/Bike%20Speed%20versus%20Grade.ipynb) | **[Bike Speed Versus Grade](ipynb/Bike%20Speed%20versus%20Grade.ipynb)** |
| [CO](https://colab.research.google.com/github/googlecolab/colabtools/Orderable%20Cards.ipynb) [DN](https://beta.deepnote.org/launch?template=python_3.6&url=https%3A%2F%2Fgithub.com%2Fnorvig%2Fpytudes%2FOrderable%20Cards.ipynb) [MY](https://mybinder.org/v2/gh/norvig/pytudes/master) [NB](https://nbviewer.jupyter.org/github/norvig/pytudes/Orderable%20Cards.ipynb) | **[Properly Ordered Card Hands](ipynb/Orderable%20Cards.ipynb)** |
| [CO](https://colab.research.google.com/github/googlecolab/colabtools/Electoral%20Votes.ipynb) [DN](https://beta.deepnote.org/launch?template=python_3.6&url=https%3A%2F%2Fgithub.com%2Fnorvig%2Fpytudes%2FElectoral%20Votes.ipynb) [MY](https://mybinder.org/v2/gh/norvig/pytudes/master) [NB](https://nbviewer.jupyter.org/github/norvig/pytudes/Electoral%20Votes.ipynb) | **[Tracking Trump: Electoral Votes](ipynb/Electoral%20Votes.ipynb)** |
2018-07-08 06:25:38 +02:00
|Logic and Number Puzzles|
2020-04-14 20:01:39 +02:00
|--|---|
2020-04-14 20:05:00 +02:00
| [CO](https://colab.research.google.com/github/googlecolab/colabtools/Cheryl.ipynb) [DN](https://beta.deepnote.org/launch?template=python_3.6&url=https%3A%2F%2Fgithub.com%2Fnorvig%2Fpytudes%2FCheryl.ipynb) [MY](https://mybinder.org/v2/gh/norvig/pytudes/master) [NB](https://nbviewer.jupyter.org/github/norvig/pytudes/Cheryl.ipynb) | **[When is Cheryl's Birthday?](ipynb/Cheryl.ipynb)** |
| [CO](https://colab.research.google.com/github/googlecolab/colabtools/Cheryl-and-Eve.ipynb) [DN](https://beta.deepnote.org/launch?template=python_3.6&url=https%3A%2F%2Fgithub.com%2Fnorvig%2Fpytudes%2FCheryl-and-Eve.ipynb) [MY](https://mybinder.org/v2/gh/norvig/pytudes/master) [NB](https://nbviewer.jupyter.org/github/norvig/pytudes/Cheryl-and-Eve.ipynb) | **[When Cheryl Met Eve: A Birthday Story](ipynb/Cheryl-and-Eve.ipynb)** |
| [CO](https://colab.research.google.com/github/googlecolab/colabtools/RiddlerLottery.ipynb) [DN](https://beta.deepnote.org/launch?template=python_3.6&url=https%3A%2F%2Fgithub.com%2Fnorvig%2Fpytudes%2FRiddlerLottery.ipynb) [MY](https://mybinder.org/v2/gh/norvig/pytudes/master) [NB](https://nbviewer.jupyter.org/github/norvig/pytudes/RiddlerLottery.ipynb) | **[Riddler Lottery](ipynb/RiddlerLottery.ipynb)** |
| [CO](https://colab.research.google.com/github/googlecolab/colabtools/NightKing.ipynb) [DN](https://beta.deepnote.org/launch?template=python_3.6&url=https%3A%2F%2Fgithub.com%2Fnorvig%2Fpytudes%2FNightKing.ipynb) [MY](https://mybinder.org/v2/gh/norvig/pytudes/master) [NB](https://nbviewer.jupyter.org/github/norvig/pytudes/NightKing.ipynb) | **[How Many Soldiers Do You Need to Beat the Night King?](ipynb/NightKing.ipynb)** |
| [CO](https://colab.research.google.com/github/googlecolab/colabtools/Coin%20Flip.ipynb) [DN](https://beta.deepnote.org/launch?template=python_3.6&url=https%3A%2F%2Fgithub.com%2Fnorvig%2Fpytudes%2FCoin%20Flip.ipynb) [MY](https://mybinder.org/v2/gh/norvig/pytudes/master) [NB](https://nbviewer.jupyter.org/github/norvig/pytudes/Coin%20Flip.ipynb) | **[The Devil and the Coin Flip Game](ipynb/Coin%20Flip.ipynb)** |
| [CO](https://colab.research.google.com/github/googlecolab/colabtools/Mean%20Misanthrope%20Density.ipynb) [DN](https://beta.deepnote.org/launch?template=python_3.6&url=https%3A%2F%2Fgithub.com%2Fnorvig%2Fpytudes%2FMean%20Misanthrope%20Density.ipynb) [MY](https://mybinder.org/v2/gh/norvig/pytudes/master) [NB](https://nbviewer.jupyter.org/github/norvig/pytudes/Mean%20Misanthrope%20Density.ipynb) | **[The Puzzle of the Misanthropic Neighbors](ipynb/Mean%20Misanthrope%20Density.ipynb)** |
| [CO](https://colab.research.google.com/github/googlecolab/colabtools/Countdown.ipynb) [DN](https://beta.deepnote.org/launch?template=python_3.6&url=https%3A%2F%2Fgithub.com%2Fnorvig%2Fpytudes%2FCountdown.ipynb) [MY](https://mybinder.org/v2/gh/norvig/pytudes/master) [NB](https://nbviewer.jupyter.org/github/norvig/pytudes/Countdown.ipynb) | **[Four 4s, Five 5s, and Countdown to 2016](ipynb/Countdown.ipynb)** |
| [CO](https://colab.research.google.com/github/googlecolab/colabtools/Sicherman%20Dice.ipynb) [DN](https://beta.deepnote.org/launch?template=python_3.6&url=https%3A%2F%2Fgithub.com%2Fnorvig%2Fpytudes%2FSicherman%20Dice.ipynb) [MY](https://mybinder.org/v2/gh/norvig/pytudes/master) [NB](https://nbviewer.jupyter.org/github/norvig/pytudes/Sicherman%20Dice.ipynb) | **[Sicherman Dice](ipynb/Sicherman%20Dice.ipynb)** |
| [CO](https://colab.research.google.com/github/googlecolab/colabtools/Golomb-Puzzle.ipynb) [DN](https://beta.deepnote.org/launch?template=python_3.6&url=https%3A%2F%2Fgithub.com%2Fnorvig%2Fpytudes%2FGolomb-Puzzle.ipynb) [MY](https://mybinder.org/v2/gh/norvig/pytudes/master) [NB](https://nbviewer.jupyter.org/github/norvig/pytudes/Golomb-Puzzle.ipynb) | **[Sol Golomb's Rectangle Puzzle](ipynb/Golomb-Puzzle.ipynb)** |
| [CO](https://colab.research.google.com/github/googlecolab/colabtools/Cryptarithmetic.ipynb) [DN](https://beta.deepnote.org/launch?template=python_3.6&url=https%3A%2F%2Fgithub.com%2Fnorvig%2Fpytudes%2FCryptarithmetic.ipynb) [MY](https://mybinder.org/v2/gh/norvig/pytudes/master) [NB](https://nbviewer.jupyter.org/github/norvig/pytudes/Cryptarithmetic.ipynb) | **[Cryptarithmetic](ipynb/Cryptarithmetic.ipynb)** |
| [CO](https://colab.research.google.com/github/googlecolab/colabtools/Riddler%20Battle%20Royale.ipynb) [DN](https://beta.deepnote.org/launch?template=python_3.6&url=https%3A%2F%2Fgithub.com%2Fnorvig%2Fpytudes%2FRiddler%20Battle%20Royale.ipynb) [MY](https://mybinder.org/v2/gh/norvig/pytudes/master) [NB](https://nbviewer.jupyter.org/github/norvig/pytudes/Riddler%20Battle%20Royale.ipynb) | **[The Riddler: Battle Royale](ipynb/Riddler%20Battle%20Royale.ipynb)** |
2020-04-14 19:57:30 +02:00
|Run|Word Games|
|---|--|
2020-04-14 20:05:00 +02:00
| [CO](https://colab.research.google.com/github/googlecolab/colabtools/SpellingBee.ipynb) [DN](https://beta.deepnote.org/launch?template=python_3.6&url=https%3A%2F%2Fgithub.com%2Fnorvig%2Fpytudes%2FSpellingBee.ipynb) [MY](https://mybinder.org/v2/gh/norvig/pytudes/master) [NB](https://nbviewer.jupyter.org/github/norvig/pytudes/SpellingBee.ipynb) | **[Spelling Bee](ipynb/SpellingBee.ipynb)** |
| [CO](https://colab.research.google.com/github/googlecolab/colabtools/ElementSpelling.ipynb) [DN](https://beta.deepnote.org/launch?template=python_3.6&url=https%3A%2F%2Fgithub.com%2Fnorvig%2Fpytudes%2FElementSpelling.ipynb) [MY](https://mybinder.org/v2/gh/norvig/pytudes/master) [NB](https://nbviewer.jupyter.org/github/norvig/pytudes/ElementSpelling.ipynb) | **[Chemical Element Spelling](ipynb/ElementSpelling.ipynb)** |
| [CO](https://colab.research.google.com/github/googlecolab/colabtools/Boggle.ipynb) [DN](https://beta.deepnote.org/launch?template=python_3.6&url=https%3A%2F%2Fgithub.com%2Fnorvig%2Fpytudes%2FBoggle.ipynb) [MY](https://mybinder.org/v2/gh/norvig/pytudes/master) [NB](https://nbviewer.jupyter.org/github/norvig/pytudes/Boggle.ipynb) | **[Boggle / Inverse Boggle](ipynb/Boggle.ipynb)** |
| [CO](https://colab.research.google.com/github/googlecolab/colabtools/Portmantout.ipynb) [DN](https://beta.deepnote.org/launch?template=python_3.6&url=https%3A%2F%2Fgithub.com%2Fnorvig%2Fpytudes%2FPortmantout.ipynb) [MY](https://mybinder.org/v2/gh/norvig/pytudes/master) [NB](https://nbviewer.jupyter.org/github/norvig/pytudes/Portmantout.ipynb) | **[Portmantout Words](ipynb/Portmantout.ipynb)** |
| [CO](https://colab.research.google.com/github/googlecolab/colabtools/xkcd-Name-Dominoes.ipynb) [DN](https://beta.deepnote.org/launch?template=python_3.6&url=https%3A%2F%2Fgithub.com%2Fnorvig%2Fpytudes%2Fxkcd-Name-Dominoes.ipynb) [MY](https://mybinder.org/v2/gh/norvig/pytudes/master) [NB](https://nbviewer.jupyter.org/github/norvig/pytudes/xkcd-Name-Dominoes.ipynb) | **[xkcd 1970: Name Dominoes](ipynb/xkcd-Name-Dominoes.ipynb)** |
| [CO](https://colab.research.google.com/github/googlecolab/colabtools/Ghost.ipynb) [DN](https://beta.deepnote.org/launch?template=python_3.6&url=https%3A%2F%2Fgithub.com%2Fnorvig%2Fpytudes%2FGhost.ipynb) [MY](https://mybinder.org/v2/gh/norvig/pytudes/master) [NB](https://nbviewer.jupyter.org/github/norvig/pytudes/Ghost.ipynb) | **[Ghost](ipynb/Ghost.ipynb)** |
| [CO](https://colab.research.google.com/github/googlecolab/colabtools/pal3.ipynb) [DN](https://beta.deepnote.org/launch?template=python_3.6&url=https%3A%2F%2Fgithub.com%2Fnorvig%2Fpytudes%2Fpal3.ipynb) [MY](https://mybinder.org/v2/gh/norvig/pytudes/master) [NB](https://nbviewer.jupyter.org/github/norvig/pytudes/pal3.ipynb) | **[World's Longest Palindrome](ipynb/pal3.ipynb)** |
| [CO](https://colab.research.google.com/github/googlecolab/colabtools/Scrabble.ipynb) [DN](https://beta.deepnote.org/launch?template=python_3.6&url=https%3A%2F%2Fgithub.com%2Fnorvig%2Fpytudes%2FScrabble.ipynb) [MY](https://mybinder.org/v2/gh/norvig/pytudes/master) [NB](https://nbviewer.jupyter.org/github/norvig/pytudes/Scrabble.ipynb) | **[Refactoring a Crossword Game Program](ipynb/Scrabble.ipynb)** |
| [CO](https://colab.research.google.com/github/googlecolab/colabtools/xkcd1313.ipynb) [DN](https://beta.deepnote.org/launch?template=python_3.6&url=https%3A%2F%2Fgithub.com%2Fnorvig%2Fpytudes%2Fxkcd1313.ipynb) [MY](https://mybinder.org/v2/gh/norvig/pytudes/master) [NB](https://nbviewer.jupyter.org/github/norvig/pytudes/xkcd1313.ipynb) | **[xkcd 1313: Regex Golf](ipynb/xkcd1313.ipynb)** |
| [CO](https://colab.research.google.com/github/googlecolab/colabtools/xkcd1313-part2.ipynb) [DN](https://beta.deepnote.org/launch?template=python_3.6&url=https%3A%2F%2Fgithub.com%2Fnorvig%2Fpytudes%2Fxkcd1313-part2.ipynb) [MY](https://mybinder.org/v2/gh/norvig/pytudes/master) [NB](https://nbviewer.jupyter.org/github/norvig/pytudes/xkcd1313-part2.ipynb) | **[xkcd 1313: Regex Golf (Part 2: Infinite Problems)](ipynb/xkcd1313-part2.ipynb)** |
| [CO](https://colab.research.google.com/github/googlecolab/colabtools/Fred%20Buns.ipynb) [DN](https://beta.deepnote.org/launch?template=python_3.6&url=https%3A%2F%2Fgithub.com%2Fnorvig%2Fpytudes%2FFred%20Buns.ipynb) [MY](https://mybinder.org/v2/gh/norvig/pytudes/master) [NB](https://nbviewer.jupyter.org/github/norvig/pytudes/Fred%20Buns.ipynb) | **[Let's Code About Bike Locks](ipynb/Fred%20Buns.ipynb)** |
| [CO](https://colab.research.google.com/github/googlecolab/colabtools/Gesture%20Typing.ipynb) [DN](https://beta.deepnote.org/launch?template=python_3.6&url=https%3A%2F%2Fgithub.com%2Fnorvig%2Fpytudes%2FGesture%20Typing.ipynb) [MY](https://mybinder.org/v2/gh/norvig/pytudes/master) [NB](https://nbviewer.jupyter.org/github/norvig/pytudes/Gesture%20Typing.ipynb) | **[Gesture Typing](ipynb/Gesture%20Typing.ipynb)** |
| [CO](https://colab.research.google.com/github/googlecolab/colabtools/How%20to%20Do%20Things%20with%20Words.ipynb) [DN](https://beta.deepnote.org/launch?template=python_3.6&url=https%3A%2F%2Fgithub.com%2Fnorvig%2Fpytudes%2FHow%20to%20Do%20Things%20with%20Words.ipynb) [MY](https://mybinder.org/v2/gh/norvig/pytudes/master) [NB](https://nbviewer.jupyter.org/github/norvig/pytudes/How%20to%20Do%20Things%20with%20Words.ipynb) | **[How to Do Things with Words, or Statistical Natural Language Processing in Python](ipynb/How%20to%20Do%20Things%20with%20Words.ipynb)** |
2020-04-14 19:57:30 +02:00
|Run|Math Concepts|
|--|--|
2020-04-14 20:05:00 +02:00
| [CO](https://colab.research.google.com/github/googlecolab/colabtools/Probability.ipynb) [DN](https://beta.deepnote.org/launch?template=python_3.6&url=https%3A%2F%2Fgithub.com%2Fnorvig%2Fpytudes%2FProbability.ipynb) [MY](https://mybinder.org/v2/gh/norvig/pytudes/master) [NB](https://nbviewer.jupyter.org/github/norvig/pytudes/Probability.ipynb) | **[A Concrete Introduction to Probability](ipynb/Probability.ipynb)** |
| [CO](https://colab.research.google.com/github/googlecolab/colabtools/ProbabilityParadox.ipynb) [DN](https://beta.deepnote.org/launch?template=python_3.6&url=https%3A%2F%2Fgithub.com%2Fnorvig%2Fpytudes%2FProbabilityParadox.ipynb) [MY](https://mybinder.org/v2/gh/norvig/pytudes/master) [NB](https://nbviewer.jupyter.org/github/norvig/pytudes/ProbabilityParadox.ipynb) | **[Probability, Paradox, and the Reasonable Person Principle](ipynb/ProbabilityParadox.ipynb)** |
| [CO](https://colab.research.google.com/github/googlecolab/colabtools/ProbabilitySimulation.ipynb) [DN](https://beta.deepnote.org/launch?template=python_3.6&url=https%3A%2F%2Fgithub.com%2Fnorvig%2Fpytudes%2FProbabilitySimulation.ipynb) [MY](https://mybinder.org/v2/gh/norvig/pytudes/master) [NB](https://nbviewer.jupyter.org/github/norvig/pytudes/ProbabilitySimulation.ipynb) | **[Estimating Probabilities with Simulations](ipynb/ProbabilitySimulation.ipynb)** |
| [CO](https://colab.research.google.com/github/googlecolab/colabtools/Differentiation.ipynb) [DN](https://beta.deepnote.org/launch?template=python_3.6&url=https%3A%2F%2Fgithub.com%2Fnorvig%2Fpytudes%2FDifferentiation.ipynb) [MY](https://mybinder.org/v2/gh/norvig/pytudes/master) [NB](https://nbviewer.jupyter.org/github/norvig/pytudes/Differentiation.ipynb) | **[Symbolic Algebra, Simplification, and Differentiation](ipynb/Differentiation.ipynb)** |
| [CO](https://colab.research.google.com/github/googlecolab/colabtools/Economics.ipynb) [DN](https://beta.deepnote.org/launch?template=python_3.6&url=https%3A%2F%2Fgithub.com%2Fnorvig%2Fpytudes%2FEconomics.ipynb) [MY](https://mybinder.org/v2/gh/norvig/pytudes/master) [NB](https://nbviewer.jupyter.org/github/norvig/pytudes/Economics.ipynb) | **[Economics Simulation](ipynb/Economics.ipynb)** |
| [CO](https://colab.research.google.com/github/googlecolab/colabtools/How%20To%20Count%20Things.ipynb) [DN](https://beta.deepnote.org/launch?template=python_3.6&url=https%3A%2F%2Fgithub.com%2Fnorvig%2Fpytudes%2FHow%20To%20Count%20Things.ipynb) [MY](https://mybinder.org/v2/gh/norvig/pytudes/master) [NB](https://nbviewer.jupyter.org/github/norvig/pytudes/How%20To%20Count%20Things.ipynb) | **[How to Count Things](ipynb/How%20To%20Count%20Things.ipynb)** |
| [CO](https://colab.research.google.com/github/googlecolab/colabtools/Socks.ipynb) [DN](https://beta.deepnote.org/launch?template=python_3.6&url=https%3A%2F%2Fgithub.com%2Fnorvig%2Fpytudes%2FSocks.ipynb) [MY](https://mybinder.org/v2/gh/norvig/pytudes/master) [NB](https://nbviewer.jupyter.org/github/norvig/pytudes/Socks.ipynb) | **[Pairing Socks](ipynb/Socks.ipynb)** |
| [CO](https://colab.research.google.com/github/googlecolab/colabtools/Euler's%20Conjecture.ipynb) [DN](https://beta.deepnote.org/launch?template=python_3.6&url=https%3A%2F%2Fgithub.com%2Fnorvig%2Fpytudes%2FEuler's%20Conjecture.ipynb) [MY](https://mybinder.org/v2/gh/norvig/pytudes/master) [NB](https://nbviewer.jupyter.org/github/norvig/pytudes/Euler's%20Conjecture.ipynb) | **[Euler's Sum of Powers Conjecture](ipynb/Euler's%20Conjecture.ipynb)** |
2020-04-14 19:57:30 +02:00
|Run|Computer Science Algorithms and Concepts|
|--|--|
2020-04-14 20:05:00 +02:00
| [CO](https://colab.research.google.com/github/googlecolab/colabtools/Convex%20Hull.ipynb) [DN](https://beta.deepnote.org/launch?template=python_3.6&url=https%3A%2F%2Fgithub.com%2Fnorvig%2Fpytudes%2FConvex%20Hull.ipynb) [MY](https://mybinder.org/v2/gh/norvig/pytudes/master) [NB](https://nbviewer.jupyter.org/github/norvig/pytudes/Convex%20Hull.ipynb) | **[The Convex Hull Problem](ipynb/Convex%20Hull.ipynb)** |
| [CO](https://colab.research.google.com/github/googlecolab/colabtools/TSP.ipynb) [DN](https://beta.deepnote.org/launch?template=python_3.6&url=https%3A%2F%2Fgithub.com%2Fnorvig%2Fpytudes%2FTSP.ipynb) [MY](https://mybinder.org/v2/gh/norvig/pytudes/master) [NB](https://nbviewer.jupyter.org/github/norvig/pytudes/TSP.ipynb) | **[The Traveling Salesperson Problem](ipynb/TSP.ipynb)** |
| [CO](https://colab.research.google.com/github/googlecolab/colabtools/StableMatching.ipynb) [DN](https://beta.deepnote.org/launch?template=python_3.6&url=https%3A%2F%2Fgithub.com%2Fnorvig%2Fpytudes%2FStableMatching.ipynb) [MY](https://mybinder.org/v2/gh/norvig/pytudes/master) [NB](https://nbviewer.jupyter.org/github/norvig/pytudes/StableMatching.ipynb) | **[The Stable Matching Problem](ipynb/StableMatching.ipynb)** |
| [CO](https://colab.research.google.com/github/googlecolab/colabtools/BASIC.ipynb) [DN](https://beta.deepnote.org/launch?template=python_3.6&url=https%3A%2F%2Fgithub.com%2Fnorvig%2Fpytudes%2FBASIC.ipynb) [MY](https://mybinder.org/v2/gh/norvig/pytudes/master) [NB](https://nbviewer.jupyter.org/github/norvig/pytudes/BASIC.ipynb) | **[BASIC Interpreter](ipynb/BASIC.ipynb)** |
| [CO](https://colab.research.google.com/github/googlecolab/colabtools/Snobol.ipynb) [DN](https://beta.deepnote.org/launch?template=python_3.6&url=https%3A%2F%2Fgithub.com%2Fnorvig%2Fpytudes%2FSnobol.ipynb) [MY](https://mybinder.org/v2/gh/norvig/pytudes/master) [NB](https://nbviewer.jupyter.org/github/norvig/pytudes/Snobol.ipynb) | **[Bad Grade, Good Experience](ipynb/Snobol.ipynb)** |
2017-03-25 02:57:19 +01:00
2017-12-02 19:53:35 +01:00
# Index of Python Files
2017-03-01 09:47:56 +01:00
| **File** | **Description** | **Documentation**|
|:--------|:-------------------|----|
2020-04-14 19:57:30 +02:00
|[SET.py](/blob/master/py/SET.py)|*Analyze the card game SET*|[documentation](http://norvig.com/SET.html)|
|[beal.py](/blob/master/py/beal.py)|*Search for counterexamples to Beal's Conjecture*|[documentation](http://norvig.com/beal.html)|
|[docex.py](/blob/master/py/docex.py)|*A framework for running unit tests, similar to `doctest`*||
|[ibol.py](/blob/master/py/ibol.py)|*An Exercise in Species Barcoding*|[documentation](http://norvig.com/ibol.html)|
|[lettercount.py](/blob/master/py/lettercount.py)|*Convert Google Ngram Counts to Letter Counts*|[documentation](http://norvig.com/mayzner.html)|
|[lis.py](/blob/master/py/lis.py)|*Lisp Interpreter written in Python*|[documentation](http://norvig.com/lispy.html)|
|[lispy.py](/blob/master/py/lispy.py)|*Even Better Lisp Interpreter written in Python*|[documentation](http://norvig.com/lispy2.html)|
|[lispytest.py](/blob/master/py/lispytest.py)|*Tests for Lisp Interpreters*||
|[pal.py](/blob/master/py/pal.py)|*Find long palindromes*|[documentation](http://norvig.com/palindrome.html)|
|[pal2.py](/blob/master/py/pal2.py)|*Find longer palindromes*|[documentation](http://norvig.com/palindrome.html)|
|[pal3.py](/blob/master/py/pal3.py)|*Find even longer palindromes*|[documentation](http://norvig.com/palindrome.html)|
|[py2html.py](/blob/master/py/py2html.py)|*Pretty-printer to format Python files as html*||
|[spell.py](/blob/master/py/spell.py)|*Spelling corrector*|[documentation](http://norvig.com/spell-correct.html)|
|[sudoku.py](/blob/master/py/sudoku.py)|*Program to solve sudoku puzzles*|[documentation](http://norvig.com/sudoku.html)|
|[testaccum.py](/blob/master/py/testaccum.py)|*Tests for my failed Python `accumulation display` proposal*|[documentation](http://norvig.com/pyacc.html)|
|[yaptu.py](/blob/master/py/yaptu.py)|*Yet Another Python Templating Utility*||
2017-08-24 10:30:18 +02:00
# Etudes for Programmers
2020-04-14 19:57:30 +02:00
I got the idea for the *"etudes"* part of the name from
2018-11-14 17:43:09 +01:00
this [1978 book](https://books.google.com/books/about/Etudes_for_programmers.html?id=u89WAAAAMAAJ)
2020-04-14 19:57:30 +02:00
by [Charles Wetherell](http://demin.ws/blog/english/2012/08/25/interview-with-charles-wetherell)
2017-12-28 00:05:21 +01:00
that was very influential to me when I was first learning to program.
2017-08-24 10:30:18 +02:00
![](https://images-na.ssl-images-amazon.com/images/I/51ZnZH29dvL._SX394_BO1,204,203,200_.jpg)