Control Flow in Python

To make a program do different things for different inputs, we need loops and branches.

Image made by me using the python logo, cool-retro-term, vim, the onedark color scheme, and GIMP.

In the first article of this series, we set up python for the rest of the series. In the second article, we introduced some fundamental objects and operators on those objects. At this point, we know enough to make working programs, but these programs can only do one thing. To fix the problem, we need to introduce branches, loops, and…

--

--

BS in Physics, Math, and CS with a minor in High-Performance Computing. You can find all my articles at https://josephmellor.xyz/articles/.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Joseph Mellor

BS in Physics, Math, and CS with a minor in High-Performance Computing. You can find all my articles at https://josephmellor.xyz/articles/.