NEW! Explore Our New Platform, the Playback Press
Learn from all of your favorite code playbacks (including the ones in this book) on our brand-new site, the Playback Press.
At the Playback Press, every playback is equipped with an AI assistant that's ready to answer your questions and to test your knowledge of the material you are learning. Watch this video, "How to View a Code Playback", to see these exciting new features in action. It's like having a personal tutor right at your fingertips!
All of our books remain free of charge, check them out now!
This is an introduction to programming using Python. The Python programming language has been around for many years and is incredibly popular. It is a friendly programming language that is intuitive. There are many libraries and frameworks that use Python for things like data science, scientific computation, and web development. It is a great first language to learn.
What you will see in this 'book' is a collection of code playbacks. Playbacks were designed to help guide a reader through code examples. You will get to see how I build programs up from scratch and hear me explain it in comments that I make along the way. These comments will have text, screenshots, and hand drawn pictures. This will allow you to get inside my head and hopefully this will demystify the programming process. When you click on a playback title below it will open a new tab. Then, just click on the comments on the left hand side of the screen and you will be guided through the code.
Some of the programs that I will show you use the Jython Environment for Students (JES). JES was developed to make it easy to introduce programming to people using examples of 'media computation'. This means that the JES allows people to write Python code that manipulates images, sounds, and videos. You are not required to use JES to get the most out of this book. There is a lot of general Python knowledge explained in these programs that uses plain old Python. Whether you use JES or not I believe it will be valuable to view the playbacks that invlove it. They are marked with *JES* below.
If you'd like to stay connected and get updates when I add new playbacks you can follow me on twitter: @markm208.
You are ready to begin! Click on the first playback below to begin your journey to learn how to program.
Chapter 1 Flow of Control and Simple Data
Chapter 3 Conditions with if and while
3.1 Comparisons by the Computer |
3.2 if, if/else, and if/else if/else Statements |
3.3 Logical Operators |
3.4 Loops |
3.5 *JES* Adding a Border to a Picture |
3.6 *JES* Finding the Predominant Color in a Row |
4.1 Python Lists |
4.2 Python Dictionaries |
4.3 Python Sets |
4.4 *JES* Storing User Supplied Data in a Dictionary |