jagomart
digital resources
picture1_Python Pdf 183562 | Lpthw Item Download 2023-01-31 20-21-02


 152x       Filetype PDF       File size 0.72 MB       Source: www.cs.cmu.edu


File: Python Pdf 183562 | Lpthw Item Download 2023-01-31 20-21-02
learn python the hard way release 2 0 zeda shaw september 21 2011 contents thehardwayiseasier 3 reading and writing 3 attention to detail 3 spotting differences 3 donotcopy paste 4 ...

icon picture PDF Filetype PDF | Posted on 31 Jan 2023 | 2 years ago
Partial capture of text on file.
                   Learn Python The Hard Way
                                        Release 2.0
                                       ZedA.Shaw
                                        September 21, 2011
                                                                                                                                                                   CONTENTS
                             TheHardWayIsEasier                                                                                                                                                                         3
                                   Reading and Writing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .                                                                      3
                                   Attention to Detail               .  .  .  .   .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  . . . . . . . . . . . . .                   3
                                   Spotting Differences                 .  .  .   .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  . . . . . . . . . . . . .                   3
                                   DoNotCopy-Paste . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .                                                                        4
                                   ANoteOnPracticeAndPersistence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .                                                                            4
                                   License         .  .  .  .  .  .  .  .  .   .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  . . . . . . . . . . . . . .                    4
                                   Special Thanks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .                                                                     5
                             Exercise 0: The Setup                                                                                                                                                                      7
                                   MacOSX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .                                                                       7
                                   Windows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .                                                                      8
                                   Linux . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .                                                                  10
                                   Warnings For Beginners . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .                                                                   11
                             Exercise 1: A Good First Program                                                                                                                                                         13
                                   WhatYouShouldSee . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .                                                                       13
                                   Extra Credit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .                                                                 14
                             Exercise 2: Comments And Pound Characters                                                                                                                                                15
                                   WhatYouShouldSee . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .                                                                       15
                                   Extra Credit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .                                                                 15
                             Exercise 3: Numbers And Math                                                                                                                                                             17
                                   WhatYouShouldSee . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .                                                                       18
                                   Extra Credit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .                                                                 18
                             Exercise 4: Variables And Names                                                                                                                                                          19
                                   WhatYouShouldSee . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .                                                                       19
                                   Extra Credit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .                                                                 20
                             Exercise 5: More Variables And Printing                                                                                                                                                  21
                                   WhatYouShouldSee . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .                                                                       21
                                   Extra Credit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .                                                                 22
                             Exercise 6: Strings And Text                                                                                                                                                             23
                                   WhatYouShouldSee . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .                                                                       23
                                   Extra Credit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .                                                                 24
                             Exercise 7: More Printing                                                                                                                                                                25
                                                                                                                                                                                                                        i
                        WhatYouShouldSee . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .         25
                        Extra Credit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .   25
                    Exercise 8: Printing, Printing                                                                                           27
                        WhatYouShouldSee . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .         27
                        Extra Credit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .   27
                    Exercise 9: Printing, Printing, Printing                                                                                 29
                        WhatYouShouldSee . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .         29
                        Extra Credit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .   29
                    Exercise 10: What Was That?                                                                                              31
                        WhatYouShouldSee . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .         31
                        Extra Credit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .   32
                    Exercise 11: Asking Questions                                                                                            33
                        WhatYouShouldSee . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .         33
                        Extra Credit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .   34
                    Exercise 12: Prompting People                                                                                            35
                        WhatYouShouldSee . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .         35
                        Extra Credit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .   35
                    Exercise 13: Parameters, Unpacking, Variables                                                                            37
                        HoldUp! Features Have Another Name . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .           37
                        WhatYouShouldSee . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .         38
                        Extra Credit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .   38
                    Exercise 14: Prompting And Passing                                                                                       39
                        WhatYouShouldSee . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .         39
                        Extra Credit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .   40
                    Exercise 15: Reading Files                                                                                               41
                        WhatYouShouldSee . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .         42
                        Extra Credit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .   42
                    Exercise 16: Reading And Writing Files                                                                                   43
                        WhatYouShouldSee . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .         44
                        Extra Credit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .   44
                    Exercise 17: More Files                                                                                                  45
                        WhatYouShouldSee . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .         45
                        Extra Credit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .   46
                    Exercise 18: Names, Variables, Code, Functions                                                                           47
                        WhatYouShouldSee . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .         48
                        Extra Credit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .   48
                    Exercise 19: Functions And Variables                                                                                     51
                        WhatYouShouldSee . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .         51
                        Extra Credit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .   52
                    Exercise 20: Functions And Files                                                                                         53
                        WhatYouShouldSee . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .         53
                        Extra Credit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .   54
                    ii
The words contained in this file might help you see if this file matches what you are looking for:

...Learn python the hard way release zeda shaw september contents thehardwayiseasier reading and writing attention to detail spotting differences donotcopy paste anoteonpracticeandpersistence license special thanks exercise setup macosx windows linux warnings for beginners a good first program whatyoushouldsee extra credit comments pound characters numbers math variables names more printing strings text i what was that asking questions prompting people...

no reviews yet
Please Login to review.