Learn Python 3 the hard way: a very simple introduction to the terrifyingly beautiful world of computers and code
Gespeichert in:
1. Verfasser: | |
---|---|
Format: | Buch |
Sprache: | English |
Veröffentlicht: |
Boston ; Columbus ; Indianapolis ; New York ; San Francisco ; Amsterdam ; Cape Town ; Dubai ; London ; Madrid ; Milan ; Munich ; Paris ; Montreal ; Toronto ; Delhi ; Mexico City ; São Paulo ; Sydney ; Hong Kong ; Seoul ; Singapore ; Taipei ; Tokyo
Addison-Wesley
[2017]
|
Schriftenreihe: | Zed Shaw's hard way series
|
Schlagworte: | |
Online-Zugang: | Inhaltsverzeichnis Inhaltsverzeichnis |
Beschreibung: | Includes index |
Beschreibung: | xx, 297 Seiten Illustrationen |
ISBN: | 9780134692883 |
Internformat
MARC
LEADER | 00000nam a2200000 c 4500 | ||
---|---|---|---|
001 | BV044865242 | ||
003 | DE-604 | ||
005 | 20230607 | ||
007 | t | ||
008 | 180313s2017 a||| |||| 00||| eng d | ||
020 | |a 9780134692883 |c (pbk.) |9 978-0-13-469288-3 | ||
035 | |a (OCoLC)1011494676 | ||
035 | |a (DE-599)BVBBV044865242 | ||
040 | |a DE-604 |b ger |e rda | ||
041 | 0 | |a eng | |
049 | |a DE-11 |a DE-12 |a DE-91G | ||
050 | 0 | |a QA76.73.P98 | |
084 | |a ST 250 |0 (DE-625)143626: |2 rvk | ||
084 | |a DAT 366 |2 stub | ||
100 | 1 | |a Shaw, Zed A. |e Verfasser |0 (DE-588)109973200X |4 aut | |
245 | 1 | 0 | |a Learn Python 3 the hard way |b a very simple introduction to the terrifyingly beautiful world of computers and code |c Zed A. Shaw |
264 | 1 | |a Boston ; Columbus ; Indianapolis ; New York ; San Francisco ; Amsterdam ; Cape Town ; Dubai ; London ; Madrid ; Milan ; Munich ; Paris ; Montreal ; Toronto ; Delhi ; Mexico City ; São Paulo ; Sydney ; Hong Kong ; Seoul ; Singapore ; Taipei ; Tokyo |b Addison-Wesley |c [2017] | |
264 | 4 | |c © 2017 | |
300 | |a xx, 297 Seiten |b Illustrationen | ||
336 | |b txt |2 rdacontent | ||
337 | |b n |2 rdamedia | ||
338 | |b nc |2 rdacarrier | ||
490 | 0 | |a Zed Shaw's hard way series | |
500 | |a Includes index | ||
653 | 0 | |a Computer programming | |
653 | 0 | |a Python (Computer program language) | |
653 | 0 | |a Python (Computer program language) | |
655 | 7 | |0 (DE-588)4151278-9 |a Einführung |2 gnd-content | |
776 | 0 | 8 | |i Erscheint auch als |n Online-Ausgabe |z 978-0-13-469386-6 |
856 | 4 | 2 | |m V:DE-603;B:DE-17 |q application/pdf |u http://scans.hebis.de/HEBCGI/show.pl?41859097_toc.pdf |3 Inhaltsverzeichnis |
856 | 4 | 2 | |m HEBIS Datenaustausch |q application/pdf |u http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=030259800&sequence=000001&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA |3 Inhaltsverzeichnis |
999 | |a oai:aleph.bib-bvb.de:BVB01-030259800 |
Datensatz im Suchindex
_version_ | 1804178392069701632 |
---|---|
adam_text | LEARN PYTHON 3
THE HARD WAY
A Very Simple Introduction
to the Terrifyingly Beautiful World
of Computers and Code
Zed A Shaw
AAddison-Wesley
Boston • Columbus • Indianapolis • New York • San Francisco • Amsterdam • Cape Town
Dubai • London • Madrid • Milan • Munich • Paris • Montreal • Toronto • Delhi • Mexico City
Säo Paulo • Sydney • Hong Kong • Seoul • Singapore • Taipei • Tokyo
LEARN PYTHON 3
THE HARD WAY
A Very Simple Introduction
to the Terrifyingly Beautiful World
of Computers and Code
Zed A Shaw
A Addison-We s 1 ey
Boston • Columbus • Indianapolis • New York • San Francisco • Amsterdam • Cape Town
Dubai • London • Madrid • Milan • Munich • Paris • Montreal • Toronto • Delhi • Mexico City
Säo Paulo • Sydney • Hong Kong • Seoul • Singapore • Taipei • Tokyo
Preface xvii
Improvements in the Python 3 Edition xvii
The Hard Way Is Easier xviii
Reading and Writing xviii
Attention to Detail xviii
Spotting Differences xviii
Ask, Don’t Stare xix
Do Not Copy-Paste xix
Using the Included Videos xix
A Note on Practice and Persistence xix
Acknowledgments xx
Exercise 0 The Setup 2
macOS 2
macOS: What You Should See 3
Windows 3
Windows: What You Should See 4
Linux 4
Linux: What You Should See 5
Finding Things on the Internet 5
Warnings for Beginners 6
Alternative Text Editors 6
Exercise 1 A Good First Program 8
What You Should See 10
Study Drills 12
Common Student Questions 12
Exercise 2 Comments and Pound Characters 14
What You Should See 14
Study Drills 14
Common Student Questions 15
Exercise 3 Numbers and Math 16
What You Should See 17
Study Drills 17
Common Student Questions 17
vi CONTENTS
Exercise 4 Variables and Names 20
What You Should See 21
Study Drills 21
Common Student Questions 21
Exercise 5 More Variables and Printing 24
What You Should See 24
Study Drills 25
Common Student Questions 25
Exercise 6 Strings and Text 26
What You Should See 27
Study Drills 27
Break It 27
Common Student Questions 27
Exercise 7 More Printing 28
What You Should See 28
Study Drills 29
Break It 29
Common Student Questions 29
Exercise 8 Printing, Printing 30
What You Should See 30
Study Drills 31
Common Student Questions 31
Exercise 9 Printing, Printing, Printing 32
What You Should See 32
Study Drills 33
Common Student Questions 33
Exercise 10 What Was That? 34
What You Should See 35
Escape Sequences 35
Study Drills 36
Common Student Questions 36
Exercise 11 Asking Questions 38
What You Should See 38
Study Drills 39
Common Student Questions 39
CONTENTS vii
Exercise 12 Prompting People 40
What You Should See 40
Study Drills 40
Common Student Questions 41
Exercise 13 Parameters, Unpacking, Variables 42
Hold Up! Features Have Another Name 42
What You Should See 43
Study Drills 44
Common Student Questions 44
Exercise 14 Prompting and Passing 46
What You Should See 46
Study Drills 47
Common Student Questions 47
Exercise 15 Reading Files 48
What You Should See 49
Study Drills 49
Common Student Questions 50
Exercise 16 Reading and Writing Files 52
What You Should See 53
Study Drills 53
Common Student Questions 54
Exercise 17 More Files 56
What You Should See 56
Study Drills 57
Common Student Questions 57
Exercise 18 Names, Variables, Code, Functions 60
What You Should See 61
Study Drills 62
Common Student Questions 62
Exercise 19 Functions and Variables 64
What You Should See 65
Study Drills 65
Common Student Questions 65
Exercise 20 Functions and Files 68
What You Should See 69
viii CONTENTS
Study Drills 69
Common Student Questions 69
Exercise 21 Functions Can Return Something 72
What You Should See 73
Study Drills 73
Common Student Questions 74
Exercise 22 What Do You Know So Far? 76
What You Are Learning 76
Exercise 23 Strings, Bytes, and Character Encodings 78
Initial Research 78
Switches, Conventions, and Encodings 80
Disecting the Output 82
Disecting the Code 82
Encodings Deep Dive 84
Breaking It 85
Exercise 24 More Practice 86
What You Should See 87
Study Drills 87
Common Student Questions 87
Exercise 25 Even More Practice 90
What You Should See 91
Study Drills 92
Common Student Questions 93
Exercise 26 Congratulations, Take a Test! 94
Common Student Questions 94
Exercise 27 Memorizing Logic 96
The Truth Terms 96
The Truth Tables 97
Common Student Questions 98
Exercise 28 Boolean Practice 100
What You Should See 102
Study Drills 102
Common Student Questions 102
Exercise 29 What If 104
What You Should See 104
CONTENTS ix
Study Drills 105
Common Student Questions 105
Exercise 30 Else and If 106
What You Should See 107
Study Drills 107
Common Student Questions 107
Exercise 31 Making Decisions 108
What You Should See 109
Study Drills 109
Common Student Questions 109
Exercise 32 Loops and Lists 112
What You Should See 113
Study Drills 114
Common Student Questions 114
Exercise 33 While Loops 116
What You Should See 117
Study Drills 117
Common Student Questions 118
Exercise 34 Accessing Elements of Lists 120
Study Drills 121
Exercise 35 Branches and Functions 122
What You Should See 123
Study Drills 124
Common Student Questions 124
Exercise 36 Designing and Debugging 126
Rules for if-statements 126
Rules for Loops 126
Tips for Debugging 127
Homework 127
Exercise 37 Symbol Review 128
Keywords 128
Data Types 129
String Escape Sequences 130
Old Style String Formats 130
Operators 131
X
CONTENTS
Reading Code 132
Study Drills 133
Common Student Questions 133
Exercise 38 Doing Things to Lists 134
What You Should See 135
What Lists Can Do 136
When to Use Lists 137
Study Drills 137
Common Student Questions 138
Exercise 39 Dictionaries, Oh Lovely Dictionaries 140
A Dictionary Example 141
What You Should See 142
What Dictionaries Can Do 143
Study Drills 144
Common Student Questions 144
Exercise 40 Modules, Classes, and Objects 146
Modules Are Like Dictionaries 146
Classes Are Like Modules 147
Objects Are Like Import 148
Getting Things from Things 149
A First Class Example 150
What You Should See 150
Study Drills 150
Common Student Questions 151
Exercise 41 Learning to Speak Object-Oriented 152
Word Drills 152
Phrase Drills 152
Combined Drills 153
A Reading Test 153
Practice English to Code 155
Reading More Code 156
Common Student Questions 156
Exercise 42 Is-A, Has-A, Objects, and Classes 158
How This Looks in Code 159
About class Name(object) 161
Study Drills 161
Common Student Questions 161
CONTENTS xi
Exercise 43 Basic Object-Oriented Analysis and Design 164
The Analysis of a Simple Game Engine 165
Write or Draw About the Problem 165
Extract Key Concepts and Research Them 166
Create a Class Hierarchy and Object Map for the Concepts 166
Code the Classes and a Test to Run Them 167
Repeat and Refine 169
Top Down versus Bottom Up 169
The Code for “Gothons from Planet Percal #25” 170
What You Should See 176
Study Drills 176
Common Student Questions 177
Exercise 44 Inheritance versus Composition 178
What Is Inheritance? 178
Implicit Inheritance 179
Override Explicitly 180
Alter Before or After 180
All Three Combined 182
The Reason for super () 183
Using super() with _init_ 183
Composition 184
When to Use Inheritance or Composition 185
Study Drills 185
Common Student Questions 186
Exercise 45 You Make a Game 188
Evaluating Your Game 188
Function Style 189
Class Style 189
Code Style 190
Good Comments 190
Evaluate Your Game 190
Exercise 46 A Project Skeleton 192
macOS/Linux Setup 192
Windows 10 Setup 194
Creating the Skeleton Project Directory 195
Final Directory Structure 196
Testing Your Setup 197
Using the Skeleton 198
xii CONTENTS
Required Quiz 198
Common Student Questions 198
Exercise 47 Automated Testing 200
Writing a Test Case 200
Testing Guidelines 202
What You Should See 202
Study Drills 203
Common Student Questions 203
Exercise 48 Advanced User Input 204
Our Game Lexicon 204
Breaking Up a Sentence 205
Lexicon Tuples 205
Scanning Input 205
Exceptions and Numbers 206
A Test First Challenge 206
What You Should Test 207
Study Drills 209
Common Student Questions 209
Exercise 49 Making Sentences 210
Match and Peek 210
The Sentence Grammar 211
A Word on Exceptions 211
The Parser Code 211
Playing with the Parser 214
What You Should Test 215
Study Drills 215
Common Student Questions 215
Exercise 50 Your First Website 216
Installing flask 216
Make a Simple “Hello World” Project 216
What’s Going On? 218
Fixing Errors 218
Create Basic Templates 219
Study Drills 221
Common Student Questions 221
Exercise 51 Getting Input from a Browser 224
How the Web Works 224
CONTENTS xiii
How Forms Work 226
Creating HTML Forms 227
Creating a Layout Template 229
Writing Automated Tests for Forms 230
Study Drills 232
Breaking It 232
Exercise 52 The Start of Your Web Game 234
Refactoring the Exercise 43 Game 234
Creating an Engine 239
Your Final Exam 241
Common Student Questions 242
Next Steps 244
How to Learn Any Programming Language 245
Advice from an Old Programmer 246
Appendix Command Line Crash Course 248
Introduction: Shut Up and Shell 248
How to Use This Appendix 248
You Will Be Memorizing Things 249
The Setup 249
Do This 250
You Learned This 251
Do More 251
Paths, Folders, Directories (pwd) 253
Do This 253
You Learned This 254
Do More 254
If You Get Lost 255
Do This 255
You Learned This 255
Make a Directory (mkdir) 255
Do This 255
You Learned This 257
Do More 257
Change Directory (cd) 258
Do This 258
You Learned This 261
Do More 261
xiv CONTENTS
List Directory (Is) 261
Do This 262
You Learned This 265
Do More 265
Remove Directory (rmd i r) 265
Do This 266
You Learned This 268
Do More 268
Moving Around (pushd, popd) 268
Do This 268
You Learned This 270
Do More 270
Making Empty Files (touch/New-Item) 271
Do This 271
You Learned This 271
Do More 272
Copy a File (cp) 272
Do This 272
You Learned This 274
Do More 275
Moving a File (mv) 275
Do This 275
You Learned This 277
Do More 277
View a File (less/more) 277
Do This 277
You Learned This 278
Do More 278
Stream a File (cat) 278
Do This 279
You Learned This 279
Do More 279
Removing a File (rm) 280
Do This 280
You Learned This 281
Do More 281
Exiting Your Terminal (exit) 282
Do This 282
CONTENTS
xv
You Learned This 282
Do More 282
Command Line Next Steps 283
Unix Bash References 283
PowerShell References 283
|
any_adam_object | 1 |
author | Shaw, Zed A. |
author_GND | (DE-588)109973200X |
author_facet | Shaw, Zed A. |
author_role | aut |
author_sort | Shaw, Zed A. |
author_variant | z a s za zas |
building | Verbundindex |
bvnumber | BV044865242 |
callnumber-first | Q - Science |
callnumber-label | QA76 |
callnumber-raw | QA76.73.P98 |
callnumber-search | QA76.73.P98 |
callnumber-sort | QA 276.73 P98 |
callnumber-subject | QA - Mathematics |
classification_rvk | ST 250 |
classification_tum | DAT 366 |
ctrlnum | (OCoLC)1011494676 (DE-599)BVBBV044865242 |
discipline | Informatik |
format | Book |
fullrecord | <?xml version="1.0" encoding="UTF-8"?><collection xmlns="http://www.loc.gov/MARC21/slim"><record><leader>01915nam a2200409 c 4500</leader><controlfield tag="001">BV044865242</controlfield><controlfield tag="003">DE-604</controlfield><controlfield tag="005">20230607 </controlfield><controlfield tag="007">t</controlfield><controlfield tag="008">180313s2017 a||| |||| 00||| eng d</controlfield><datafield tag="020" ind1=" " ind2=" "><subfield code="a">9780134692883</subfield><subfield code="c">(pbk.)</subfield><subfield code="9">978-0-13-469288-3</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(OCoLC)1011494676</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(DE-599)BVBBV044865242</subfield></datafield><datafield tag="040" ind1=" " ind2=" "><subfield code="a">DE-604</subfield><subfield code="b">ger</subfield><subfield code="e">rda</subfield></datafield><datafield tag="041" ind1="0" ind2=" "><subfield code="a">eng</subfield></datafield><datafield tag="049" ind1=" " ind2=" "><subfield code="a">DE-11</subfield><subfield code="a">DE-12</subfield><subfield code="a">DE-91G</subfield></datafield><datafield tag="050" ind1=" " ind2="0"><subfield code="a">QA76.73.P98</subfield></datafield><datafield tag="084" ind1=" " ind2=" "><subfield code="a">ST 250</subfield><subfield code="0">(DE-625)143626:</subfield><subfield code="2">rvk</subfield></datafield><datafield tag="084" ind1=" " ind2=" "><subfield code="a">DAT 366</subfield><subfield code="2">stub</subfield></datafield><datafield tag="100" ind1="1" ind2=" "><subfield code="a">Shaw, Zed A.</subfield><subfield code="e">Verfasser</subfield><subfield code="0">(DE-588)109973200X</subfield><subfield code="4">aut</subfield></datafield><datafield tag="245" ind1="1" ind2="0"><subfield code="a">Learn Python 3 the hard way</subfield><subfield code="b">a very simple introduction to the terrifyingly beautiful world of computers and code</subfield><subfield code="c">Zed A. Shaw</subfield></datafield><datafield tag="264" ind1=" " ind2="1"><subfield code="a">Boston ; Columbus ; Indianapolis ; New York ; San Francisco ; Amsterdam ; Cape Town ; Dubai ; London ; Madrid ; Milan ; Munich ; Paris ; Montreal ; Toronto ; Delhi ; Mexico City ; São Paulo ; Sydney ; Hong Kong ; Seoul ; Singapore ; Taipei ; Tokyo</subfield><subfield code="b">Addison-Wesley</subfield><subfield code="c">[2017]</subfield></datafield><datafield tag="264" ind1=" " ind2="4"><subfield code="c">© 2017</subfield></datafield><datafield tag="300" ind1=" " ind2=" "><subfield code="a">xx, 297 Seiten</subfield><subfield code="b">Illustrationen</subfield></datafield><datafield tag="336" ind1=" " ind2=" "><subfield code="b">txt</subfield><subfield code="2">rdacontent</subfield></datafield><datafield tag="337" ind1=" " ind2=" "><subfield code="b">n</subfield><subfield code="2">rdamedia</subfield></datafield><datafield tag="338" ind1=" " ind2=" "><subfield code="b">nc</subfield><subfield code="2">rdacarrier</subfield></datafield><datafield tag="490" ind1="0" ind2=" "><subfield code="a">Zed Shaw's hard way series</subfield></datafield><datafield tag="500" ind1=" " ind2=" "><subfield code="a">Includes index</subfield></datafield><datafield tag="653" ind1=" " ind2="0"><subfield code="a">Computer programming</subfield></datafield><datafield tag="653" ind1=" " ind2="0"><subfield code="a">Python (Computer program language)</subfield></datafield><datafield tag="653" ind1=" " ind2="0"><subfield code="a">Python (Computer program language)</subfield></datafield><datafield tag="655" ind1=" " ind2="7"><subfield code="0">(DE-588)4151278-9</subfield><subfield code="a">Einführung</subfield><subfield code="2">gnd-content</subfield></datafield><datafield tag="776" ind1="0" ind2="8"><subfield code="i">Erscheint auch als</subfield><subfield code="n">Online-Ausgabe</subfield><subfield code="z">978-0-13-469386-6</subfield></datafield><datafield tag="856" ind1="4" ind2="2"><subfield code="m">V:DE-603;B:DE-17</subfield><subfield code="q">application/pdf</subfield><subfield code="u">http://scans.hebis.de/HEBCGI/show.pl?41859097_toc.pdf</subfield><subfield code="3">Inhaltsverzeichnis</subfield></datafield><datafield tag="856" ind1="4" ind2="2"><subfield code="m">HEBIS Datenaustausch</subfield><subfield code="q">application/pdf</subfield><subfield code="u">http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=030259800&sequence=000001&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA</subfield><subfield code="3">Inhaltsverzeichnis</subfield></datafield><datafield tag="999" ind1=" " ind2=" "><subfield code="a">oai:aleph.bib-bvb.de:BVB01-030259800</subfield></datafield></record></collection> |
genre | (DE-588)4151278-9 Einführung gnd-content |
genre_facet | Einführung |
id | DE-604.BV044865242 |
illustrated | Illustrated |
indexdate | 2024-07-10T08:03:14Z |
institution | BVB |
isbn | 9780134692883 |
language | English |
oai_aleph_id | oai:aleph.bib-bvb.de:BVB01-030259800 |
oclc_num | 1011494676 |
open_access_boolean | |
owner | DE-11 DE-12 DE-91G DE-BY-TUM |
owner_facet | DE-11 DE-12 DE-91G DE-BY-TUM |
physical | xx, 297 Seiten Illustrationen |
publishDate | 2017 |
publishDateSearch | 2017 |
publishDateSort | 2017 |
publisher | Addison-Wesley |
record_format | marc |
series2 | Zed Shaw's hard way series |
spelling | Shaw, Zed A. Verfasser (DE-588)109973200X aut Learn Python 3 the hard way a very simple introduction to the terrifyingly beautiful world of computers and code Zed A. Shaw Boston ; Columbus ; Indianapolis ; New York ; San Francisco ; Amsterdam ; Cape Town ; Dubai ; London ; Madrid ; Milan ; Munich ; Paris ; Montreal ; Toronto ; Delhi ; Mexico City ; São Paulo ; Sydney ; Hong Kong ; Seoul ; Singapore ; Taipei ; Tokyo Addison-Wesley [2017] © 2017 xx, 297 Seiten Illustrationen txt rdacontent n rdamedia nc rdacarrier Zed Shaw's hard way series Includes index Computer programming Python (Computer program language) (DE-588)4151278-9 Einführung gnd-content Erscheint auch als Online-Ausgabe 978-0-13-469386-6 V:DE-603;B:DE-17 application/pdf http://scans.hebis.de/HEBCGI/show.pl?41859097_toc.pdf Inhaltsverzeichnis HEBIS Datenaustausch application/pdf http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=030259800&sequence=000001&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA Inhaltsverzeichnis |
spellingShingle | Shaw, Zed A. Learn Python 3 the hard way a very simple introduction to the terrifyingly beautiful world of computers and code |
subject_GND | (DE-588)4151278-9 |
title | Learn Python 3 the hard way a very simple introduction to the terrifyingly beautiful world of computers and code |
title_auth | Learn Python 3 the hard way a very simple introduction to the terrifyingly beautiful world of computers and code |
title_exact_search | Learn Python 3 the hard way a very simple introduction to the terrifyingly beautiful world of computers and code |
title_full | Learn Python 3 the hard way a very simple introduction to the terrifyingly beautiful world of computers and code Zed A. Shaw |
title_fullStr | Learn Python 3 the hard way a very simple introduction to the terrifyingly beautiful world of computers and code Zed A. Shaw |
title_full_unstemmed | Learn Python 3 the hard way a very simple introduction to the terrifyingly beautiful world of computers and code Zed A. Shaw |
title_short | Learn Python 3 the hard way |
title_sort | learn python 3 the hard way a very simple introduction to the terrifyingly beautiful world of computers and code |
title_sub | a very simple introduction to the terrifyingly beautiful world of computers and code |
topic_facet | Einführung |
url | http://scans.hebis.de/HEBCGI/show.pl?41859097_toc.pdf http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=030259800&sequence=000001&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA |
work_keys_str_mv | AT shawzeda learnpython3thehardwayaverysimpleintroductiontotheterrifyinglybeautifulworldofcomputersandcode |
Es ist kein Print-Exemplar vorhanden.
Inhaltsverzeichnis