Hour 6Controlling Your Programs
This hour’s lesson extends your knowledge of Python by showing you how to compare values and repeat sections of Python programs. A user’s responses or calculated data can control the flow of your program. This lesson teaches you how to write programs that make decisions. The code sometimes needs to repeat sections in order to complete the processing of several data values. You’ll learn how to create a loop to do just that.
With the concepts that you learn in this lesson, you can write powerful programs to do what you need done. You will find yourself thinking of new ideas and new ways to use your computer.
The highlights of this hour include the following:
Making decisions with Python
Using the if
statement ...
Get Sams Teach Yourself Beginning Programming in 24 Hours, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.