pytudes
“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
This project contains pytudes—Python programs, usually short, for perfecting programming skills.
Some programs are in Jupyter (.ipynb) notebooks, some in
.py files. For each notebook you can click on: - CO to run
the file on Colab - DN to
run the notebook on DeepNote - MY to run the notebook
on MyBinder - NB to
view the notebook on NBViewer - The
title to view the notebook on github, and
download or fork it.
Index of Jupyter (IPython) Notebooks
| Logic and Number Puzzles | |
|---|---|
| CO DN MY NB | <a href=“ipynb/Cheryl.ipynb” title=“Solving the”Cheryl’s Birthday” logic puzzle”>When is Cheryl’s Birthday? |
| CO DN MY NB | When Cheryl Met Eve: A Birthday Story |
| CO DN MY NB | Riddler Lottery |
| CO DN MY NB | How Many Soldiers Do You Need to Beat the Night King? |
| CO DN MY NB | The Devil and the Coin Flip Game |
| CO DN MY NB | The Puzzle of the Misanthropic Neighbors |
| CO DN MY NB | Four 4s, Five 5s, and Countdown to 2016 |
| CO DN MY NB | Sicherman Dice |
| CO DN MY NB | Sol Golomb’s Rectangle Puzzle |
| CO DN MY NB | Cryptarithmetic |
| CO DN MY NB | The Riddler: Battle Royale |
| Run | Computer Science Algorithms and Concepts |
|---|---|
| CO DN MY NB | The Convex Hull Problem |
| CO DN MY NB | The Traveling Salesperson Problem |
| CO DN MY NB | The Stable Matching Problem |
| CO DN MY NB | BASIC Interpreter |
| CO DN MY NB | Bad Grade, Good Experience |
Index of Python Files
| File | Description | Documentation |
|---|---|---|
| SET.py | Analyze the card game SET | documentation |
| beal.py | Search for counterexamples to Beal’s Conjecture | documentation |
| docex.py | A framework for running unit tests,
similar to doctest |
|
| ibol.py | An Exercise in Species Barcoding | documentation |
| lettercount.py | Convert Google Ngram Counts to Letter Counts | documentation |
| lis.py | Lisp Interpreter written in Python | documentation |
| lispy.py | Even Better Lisp Interpreter written in Python | documentation |
| lispytest.py | Tests for Lisp Interpreters | |
| pal.py | Find long palindromes | documentation |
| pal2.py | Find longer palindromes | documentation |
| pal3.py | Find even longer palindromes | documentation |
| py2html.py | Pretty-printer to format Python files as html | |
| spell.py | Spelling corrector | documentation |
| sudoku.py | Program to solve sudoku puzzles | documentation |
| testaccum.py | Tests for my failed Python
accumulation display proposal |
documentation |
| yaptu.py | Yet Another Python Templating Utility |
Etudes for Programmers
I got the idea for the “etudes” part of the name from this 1978 book by Charles Wetherell that was very influential to me when I was first learning to program.
