Summary


In this chapter, you saw how to change the flow of your program. You learned that the key to changing the flow is the computer's ability to evaluate conditions. You saw how to create simple and compound conditions. You learned about the if, if-else, and if-elif-else structures, which allow programs to make a decision. You met the while structure, useful for repeating code sections. You learned about the importance of program planning. You saw how to plan a program by creating an algorithm in pseudocode. You also learned how to generate random numbers to add some excitement to your programs.




Python Programming for the Absolute Beginner
Python Programming for the Absolute Beginner, 3rd Edition
ISBN: 1435455002
EAN: 2147483647
Year: 2003
Pages: 194

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net