Code examples from the book, Python 101 2nd Edition by Michael Driscoll.
You can get early access to the book on Leanpub as well as all updates as they come out. The book will be finished by September 2020.
The first dozen or so chapters will have Jupyter Notebooks rather than simple code examples. You can run the examples in your browser by using this link: . Then navigate to each chapter and open the Jupyter Notebook.
Alternatively, you can download the code (or clone it with Git) and use Jupyter on your own machine. Once you have gotten the code / notebooks from this repo, you will need to install Jupyter. Once installed, you should open up a terminal (or cmd.exe on Windows) and navigate to the folder where your save the code to. Then run jupyter notebook
in your terminal.
If you are looking for the code for Python 101, 1st Edition, they can be found here