Learn Python The Hard Way | Page 5

Not Available
. . . . . . . . . . . . . . . . . .100
Extra Credit. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .100
Exercise 34: Accessing Elements Of Lists103 Extra Credit. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .104
Exercise 35: Branches and Functions105 What You Should See. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .107
Extra Credit. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .107
Exercise 36: Designing and Debugging109 Rules For If-Statements. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .109
Rules For Loops. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .110
Tips For Debugging. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .110
Homework. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .110
Exercise 37: Symbol Review111 Keywords. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .111
Data Types. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .112
String Escapes Sequences. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .113
String Formats. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .113
Operators. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .114
Exercise 38: Reading Code117 Extra Credit. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .117
Exercise 39: Doing Things To Lists119 What You Should See. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .121
Extra Credit. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .121
Exercise 40: Dictionaries, Oh Lovely Dictionaries123 What You Should See. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .125 iv

Extra Credit. . . . . . . . . . . . . . . . . . . . . .
Continue reading on your phone by scaning this QR Code

 / 58
Tip: The current page has been bookmarked automatically. If you wish to continue reading later, just open the Dertz Homepage, and click on the 'continue reading' link at the bottom of the page.