Muutke küpsiste eelistusi

Python for Everybody: Exploring Data in Python 3 [Pehme köide]

4.27/5 (1146 hinnangut Goodreads-ist)
Illustrated by , Edited by , Edited by
  • Formaat: Paperback / softback, 246 pages, kõrgus x laius x paksus: 251x175x15 mm, kaal: 431 g
  • Ilmumisaeg: 09-Apr-2016
  • Kirjastus: Createspace Independent Publishing Platform
  • ISBN-10: 1530051126
  • ISBN-13: 9781530051120
Teised raamatud teemal:
  • Formaat: Paperback / softback, 246 pages, kõrgus x laius x paksus: 251x175x15 mm, kaal: 431 g
  • Ilmumisaeg: 09-Apr-2016
  • Kirjastus: Createspace Independent Publishing Platform
  • ISBN-10: 1530051126
  • ISBN-13: 9781530051120
Teised raamatud teemal:
Python for Everybody is designed to introduce students to programming and software development through the lens of exploring data. You can think of the Python programming language as your tool to solve data problems that are beyond the capability of a spreadsheet.Python is an easy to use and easy to learn programming language that is freely available on Macintosh, Windows, or Linux computers. So once you learn Python you can use it for the rest of your career without needing to purchase any software.This book uses the Python 3 language. The earlier Python 2 version of this book is titled "Python for Informatics: Exploring Information".There are free downloadable electronic copies of this book in various formats and supporting materials for the book at www.pythonlearn.com. The course materials are available to you under a Creative Commons License so you can adapt them to teach your own Python course.
1 Why should you learn to write programs? 1(16)
1.1 Creativity and motivation
2(1)
1.2 Computer hardware architecture
3(1)
1.3 Understanding programming
4(1)
1.4 Words and sentences
5(1)
1.5 Conversing with Python
6(2)
1.6 Terminology: interpreter and compiler
8(2)
1.7 Writing a program
10(1)
1.8 What is a program?
10(1)
1.9 The building blocks of programs
11(1)
1.10 What could possibly go wrong?
12(2)
1.11 The learning journey
14(1)
1.12 Glossary
14(1)
1.13 Exercises
15(2)
2 Variables, expressions, and statements 17(12)
2.1 Values and types
17(1)
2.2 Variables
18(1)
2.3 Variable names and keywords
19(1)
2.4 Statements
19(1)
2.5 Operators and operands
20(1)
2.6 Expressions
21(1)
2.7 Order of operations
21(1)
2.8 Modulus operator
22(1)
2.9 String operations
22(1)
2.10 Asking the user for input
22(1)
2.11 Comments
23(1)
2.12 Choosing mnemonic variable names
24(2)
2.13 Debugging
26(1)
2.14 Glossary
27(1)
2.15 Exercises
27(2)
3 Conditional execution 29(12)
3.1 Boolean expressions
29(1)
3.2 Logical operators
30(1)
3.3 Conditional execution
30(1)
3.4 Alternative execution
31(1)
3.5 Chained conditionals
32(1)
3.6 Nested conditionals
33(1)
3.7 Catching exceptions using try and except
34(1)
3.8 Short-circuit evaluation of logical expressions
35(2)
3.9 Debugging
37(1)
3.10 Glossary
37(1)
3.11 Exercises
38(3)
4 Functions 41(14)
4.1 Function calls
41(1)
4.2 Built-in functions
41(1)
4.3 Type conversion functions
42(1)
4.4 Random numbers
43(1)
4.5 Math functions
44(1)
4.6 Adding new functions
45(1)
4.7 Definitions and uses
46(1)
4.8 Flow of execution
47(1)
4.9 Parameters and arguments
48(1)
4.10 Fruitful functions and void functions
49(1)
4.11 Why functions?
50(1)
4.12 Debugging
50(1)
4.13 Glossary
51(1)
4.14 Exercises
52(3)
5 Iteration 55(10)
5.1 Updating variables
55(1)
5.2 The while statement
55(1)
5.3 Infinite loops
56(1)
5.4 "Infinite loops" and break
56(1)
5.5 Finishing iterations with continue
57(1)
5.6 Definite loops using for
58(1)
5.7 Loop patterns
59(3)
5.7.1 Counting and summing loops
59(1)
5.7.2 Maximum and minimum loops
60(2)
5.8 Debugging
62(1)
5.9 Glossary
62(1)
5.10 Exercises
62(3)
6 Strings 65(12)
6.1 A string is a sequence
65(1)
6.2 Getting the length of a string using len
66(1)
6.3 Traversal through a string with a loop
66(1)
6.4 String slices
67(1)
6.5 Strings are immutable
68(1)
6.6 Looping and counting
68(1)
6.7 The in operator
69(1)
6.8 String comparison
69(1)
6.9 string methods
69(3)
6.10 Parsing strings
72(1)
6.11 Format operator
72(1)
6.12 Debugging
73(1)
6.13 Glossary
74(1)
6.14 Exercises
75(2)
7 Files 77(12)
7.1 Persistence
77(1)
7.2 Opening files
78(1)
7.3 Text files and lines
79(1)
7.4 Reading files
80(1)
7.5 Searching through a file
81(2)
7.6 Letting the user choose the file name
83(1)
7.7 Using try, except, and open
84(1)
7.8 Writing files
85(1)
7.9 Debugging
86(1)
7.10 Glossary
86(1)
7.11 Exercises
87(2)
8 Lists 89(16)
8.1 A list is a sequence
89(1)
8.2 Lists are mutable
90(1)
8.3 Traversing a list
90(1)
8.4 List operations
91(1)
8.5 List slices
92(1)
8.6 List methods
92(1)
8.7 Deleting elements
93(1)
8.8 Lists and functions
94(1)
8.9 Lists and strings
95(1)
8.10 Parsing lines
96(1)
8.11 Objects and values
97(1)
8.12 Aliasing
98(1)
8.13 List arguments
98(2)
8.14 Debugging
100(3)
8.15 Glossary
103(1)
8.16 Exercises
103(2)
9 Dictionaries 105(10)
9.1 Dictionary as a set of counters
107(1)
9.2 Dictionaries and files
108(1)
9.3 Looping and dictionaries
109(2)
9.4 Advanced text parsing
111(1)
9.5 Debugging
112(1)
9.6 Glossary
113(1)
9.7 Exercises
113(2)
10 Tuples 115(12)
10.1 Tuples are immutable
115(1)
10.2 Comparing tuples
116(2)
10.3 Tuple assignment
118(1)
10.4 Dictionaries and tuples
119(1)
10.5 Multiple assignment with dictionaries
120(1)
10.6 The most common words
121(1)
10.7 Using tuples as keys in dictionaries
122(1)
10.8 Sequences: strings, lists, and tuples - Oh My!
122(1)
10.9 Debugging
123(1)
10.10 Glossary
124(1)
10.11 Exercises
125(2)
11 Regular expressions 127(14)
11.1 Character matching in regular expressions
128(1)
11.2 Extracting data using regular expressions
129(3)
11.3 Combining searching and extracting
132(3)
11.4 Escape character
135(1)
11.5 Summary
136(1)
11.6 Bonus section for Unix/Linux users
137(1)
11.7 Debugging
137(1)
11.8 Glossary
138(1)
11.9 Exercises
138(3)
12 Networked programs 141(12)
12.1 HyperText Transport Protocol - HTTP
141(1)
12.2 The World's Simplest Web Browser
142(1)
12.3 Retrieving an image over HTTP
143(3)
12.4 Retrieving web pages with urllib
146(1)
12.5 Parsing HTML and scraping the web
147(1)
12.6 Parsing HTML using regular expressions
147(1)
12.7 Parsing HTML using BeautifulSoup
148(2)
12.8 Reading binary files using urllib
150(1)
12.9 Glossary
151(1)
12.10 Exercises
152(1)
13 Using Web Services 153(14)
13.1 eXtensible Markup Language - XML
153(1)
13.2 Parsing XML
154(1)
13.3 Looping through nodes
155(1)
13.4 JavaScript Object Notation - JSON
156(1)
13.5 Parsing JSON
156(1)
13.6 Application Programming Interfaces
157(2)
13.7 Google geocoding web service
159(2)
13.8 Security and API usage
161(4)
13.9 Glossary
165(1)
13.10 Exercises
165(2)
14 Object-Oriented Programming 167(14)
14.1 Managing Larger Programs
167(1)
14.2 Getting Started
168(1)
14.3 Using Objects
168(1)
14.4 Starting with Programs
169(2)
14.5 Subdividing a Problem - Encapsulation
171(1)
14.6 Our First Python Object
172(2)
14.7 Classes as Types
174(1)
14.8 Object Lifecycle
175(1)
14.9 Many Instances
176(1)
14.10 Inheritance
177(1)
14.11 Summary
178(1)
14.12 Glossary
179(2)
15 Using databases and SQL 181(24)
15.1 What is a database?
181(1)
15.2 Database concepts
181(1)
15.3 Database Browser for SQLite
182(1)
15.4 Creating a database table
182(3)
15.5 Structured Query Language summary
185(2)
15.6 Spidering Twitter using a database
187(5)
15.7 Basic data modeling
192(1)
15.8 Programming with multiple tables
193(3)
15.8.1 Constraints in database tables
196(1)
15.8.2 Retrieve and/or insert a record
197(1)
15.8.3 Storing the friend relationship
197(2)
15.9 Three kinds of keys
199(1)
15.10 Using JOIN to retrieve data
199(3)
15.11 Summary
202(1)
15.12 Debugging
202(1)
15.13 Glossary
202(3)
16 Visualizing data 205(12)
16.1 Building a Google map from geocoded data
205(2)
16.2 Visualizing networks and interconnections
207(3)
16.3 Visualizing mail data
210(7)
A Contributions 217(4)
A.1 Contributor List for Python for Everybody
217(1)
A.2 Contributor List for Python for Informatics
217(1)
A.3 Preface for "Think Python"
217(2)
A.3.1 The strange history of "Think Python"
217(2)
A.3.2 Acknowledgements for "Think Python"
219(1)
A.4 Contributor List for "Think Python"
219(2)
B Copyright Detail 221