Now that you know how to run a simple Python program on the BeagleBone Blue, let's look at some more complex programming constructs. Specifically, you'll learn what to do when you want to decide what instructions to execute and show how to loop your code to do the same thing more than once. You'll learn how to use libraries in Python code and how to organize statements into functions. Finally, you'll learn about some very basic object-oriented concepts.
As with the previous section, once you have the basic system and Emacs, you are ready to start coding. As you have seen, your programs normally start with the first line of code and then continue executing the next line until your program runs out of code. This is fine, but what if you want to decide between two different courses of action? You can do...