Practical programming: an introduction to computer science using Python
Computers are used in every part of science from ecology to particle physics. This introduction to computer science continually reinforces those ties by using real-world science problems as examples.
Gespeichert in:
Format: | Buch |
---|---|
Sprache: | English |
Veröffentlicht: |
Raleigh, NC [u.a.]
Pragmatic Bookshelf
2009
|
Schlagworte: | |
Online-Zugang: | Inhaltsverzeichnis |
Zusammenfassung: | Computers are used in every part of science from ecology to particle physics. This introduction to computer science continually reinforces those ties by using real-world science problems as examples. |
Beschreibung: | X, 363 S. graph. Darst. |
ISBN: | 9781934356272 1934356271 |
Internformat
MARC
LEADER | 00000nam a2200000 c 4500 | ||
---|---|---|---|
001 | BV035291099 | ||
003 | DE-604 | ||
005 | 20090831 | ||
007 | t | ||
008 | 090204s2009 d||| |||| 00||| eng d | ||
015 | |a GBA8C9547 |2 dnb | ||
020 | |a 9781934356272 |c Pbk. : USD 32.95 |9 978-1-934356-27-2 | ||
020 | |a 1934356271 |c Pbk. : USD 32.95 |9 1-934356-27-1 | ||
035 | |a (OCoLC)251217630 | ||
035 | |a (DE-599)BVBBV035291099 | ||
040 | |a DE-604 |b ger |e rakwb | ||
041 | 0 | |a eng | |
049 | |a DE-703 |a DE-11 | ||
050 | 0 | |a QA76.73.P98 | |
082 | 0 | |a 005.1/33 |2 22 | |
084 | |a ST 250 |0 (DE-625)143626: |2 rvk | ||
245 | 1 | 0 | |a Practical programming |b an introduction to computer science using Python |c Jennifer Campbell ... |
264 | 1 | |a Raleigh, NC [u.a.] |b Pragmatic Bookshelf |c 2009 | |
300 | |a X, 363 S. |b graph. Darst. | ||
336 | |b txt |2 rdacontent | ||
337 | |b n |2 rdamedia | ||
338 | |b nc |2 rdacarrier | ||
520 | |a Computers are used in every part of science from ecology to particle physics. This introduction to computer science continually reinforces those ties by using real-world science problems as examples. | ||
650 | 4 | |a Computer programming | |
650 | 4 | |a Python (Computer program language) | |
650 | 4 | |a Computer programming | |
650 | 4 | |a Python (Computer program language) | |
650 | 0 | 7 | |a Python |g Programmiersprache |0 (DE-588)4434275-5 |2 gnd |9 rswk-swf |
689 | 0 | 0 | |a Python |g Programmiersprache |0 (DE-588)4434275-5 |D s |
689 | 0 | |5 DE-604 | |
700 | 1 | |a Campbell, Jennifer |e Sonstige |4 oth | |
856 | 4 | 2 | |m Digitalisierung UB Bayreuth |q application/pdf |u http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=017096149&sequence=000002&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA |3 Inhaltsverzeichnis |
999 | |a oai:aleph.bib-bvb.de:BVB01-017096149 |
Datensatz im Suchindex
_version_ | 1804138587717894144 |
---|---|
adam_text | Contents
1
Introduction
1
1.1
Programs and Programming
................ 3
1.2
A Few Definitions
...................... 4
1.3
What to Install
........................ 4
1.4
For Instructors
........................ 5
1.5
Summary
........................... 6
2
Hello, Python
7
2.1
The Big Picture
....................... 7
2.2
Expressions
......................... 9
2.3
What
/s a
Type?
....................... 12
2.4
Variables and the Assignment Statement
........ 15
2.5
When Things Go Wrong
.................. 19
2.6
Function Basics
....................... 20
2.7
Built-in Functions
...................... 23
2.8
Style Notes
.......................... 24
2.9
Summary
........................... 25
2.10
Exercises
........................... 26
3
Strings
29
3.1
Strings
............................ 29
3.2
Escape Characters
..................... 32
3.3
Multiline Strings
....................... 33
3.4
Print
.............................. 34
3.5
Formatted Printing
..................... 35
3.6
User Input
.......................... 36
3.7
Summary
........................... 37
3.8
Exercises
........................... 38
CONTENTS
4 Modules 41
4.1
Importing
Modules..................... 41
4.2
Defining Your Own
Modules................ 45
4.3
Objects and Methods
.................... 51
4.4
Pixels and Colors
...................... 59
4.5
Testing
............................ 61
4.6
Style Notes
.......................... 67
4.7
Summary
........................... 68
4.8
Exercises
........................... 69
5
Lists
73
5.1
Lists and Indices
...................... 73
5.2
Modifying Lists
........................ 77
5.3
Built-in Functions on Lists
................ 79
5.4
Processing List Items
.................... 81
5.5
Slicing
............................. 84
5.6
Aliasing
............................ 86
5.7
List Methods
......................... 87
5.8
Nested Lists
......................... 89
5.9
Other Kinds of Sequences
................. 91
5.10
Files as Lists
......................... 92
5.11
Comments
.......................... 95
5.12
Summary
........................... 97
5.13
Exercises
........................... 97
6
Making Choices
101
6.1
Boolean Logic
........................ 101
6.2
if Statements
.........................
Ill
6.3
Storing Conditionals
.................... 118
6.4
Summary
........................... 119
6.5
Exercises
........................... 120
7
Repetition
125
7.1
Counted Loops
........................ 125
7.2
while Loops
.......................... 134
7.3
User Input Loops
...................... 142
7.4
Controlling Loops
...................... 143
7.5
Style Notes
.......................... 147
7.6
Summary
........................... 148
7.7
Exercises
........................... 149
8
File Processing
153
8.1
One Record per Line
.................... 154
8.2
Records with Multiple Fields
................ 164
8.3
Positional Data
....................... 167
8.4
Multiline Records
...................... 170
8.5
Looking Ahead
........................ 172
8.6
Writing to Files
........................ 174
8.7
Summary
........................... 176
8.8
Exercises
........................... 176
9
Sets and Dictionaries
179
9.1
Sets
.............................. 179
9.2
Dictionaries
......................... 184
9.3
Inverting a Dictionary
.................... 191
9.4
Summary
........................... 192
9.5
Exercises
........................... 193
10
Algorithms
197
10.1
Searching
........................... 198
10.2
Timing
............................ 205
10.3
Summary
........................... 205
10.4
Exercises
........................... 206
11
Searching and Sorting
209
11.1
Linear Search
........................ 209
11.2
Binary Search
........................ 213
11.3
Sorting
............................ 217
11.4
More Efficient Sorting Algorithms
............. 223
11.5
Mergesort: An Nlog2N Algorithm
............. 224
11.6
Summary
........................... 228
11.7
Exercises
........................... 229
12
Construction
233
12.1
More on Functions
..................... 233
12.2
Exceptions
.......................... 238
12.3
Testing
............................ 245
12.4
Debugging
.......................... 250
12.5
Patterns
........................... 252
12.6
Summary
........................... 256
12.7
Exercises
........................... 257
CONTENTS
13 Object-Oriented Programming 267
13.1
Class Color..........................
268
13.2 Special
Methods.......................
273
13.3
More About
dir
and help
.................. 275
13.4
A Little Bit of OO Theory
.................. 277
13.5
A Longer Example
...................... 285
13.6
Summary
........................... 290
13.7
Exercises
........................... 290
14
Graphical User Interfaces
291
14.1
The Tkinter Module
..................... 292
14.2
Basic GUI Construction
.................. 293
14.3
Models, Views, and Controllers
.............. 298
14.4
Style
.............................. 304
14.5
A Few More Widgets
..................... 309
14.6
Object-Oriented GUIs
.................... 313
14.7
Summary
........................... 314
14.8
Exercises
........................... 315
15
Databases
319
15.1
The Big Picture
....................... 319
15.2
First Steps
.......................... 321
15.3
Retrieving Data
....................... 325
15.4
Updating and Deleting
................... 328
15.5
Transactions
......................... 329
15.6
Using NULL for Missing Data
............... 331
15.7
Using Joins to Combine Tables
.............. 332
15.8
Keys and Constraints
.................... 337
15.9
Advanced Features
..................... 339
15.10
Summary
........................... 344
15.11
Exercises
........................... 345
A Bibliography
349
Index
351
|
any_adam_object | 1 |
building | Verbundindex |
bvnumber | BV035291099 |
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 |
ctrlnum | (OCoLC)251217630 (DE-599)BVBBV035291099 |
dewey-full | 005.1/33 |
dewey-hundreds | 000 - Computer science, information, general works |
dewey-ones | 005 - Computer programming, programs, data, security |
dewey-raw | 005.1/33 |
dewey-search | 005.1/33 |
dewey-sort | 15.1 233 |
dewey-tens | 000 - Computer science, information, general works |
discipline | Informatik |
format | Book |
fullrecord | <?xml version="1.0" encoding="UTF-8"?><collection xmlns="http://www.loc.gov/MARC21/slim"><record><leader>01801nam a2200421 c 4500</leader><controlfield tag="001">BV035291099</controlfield><controlfield tag="003">DE-604</controlfield><controlfield tag="005">20090831 </controlfield><controlfield tag="007">t</controlfield><controlfield tag="008">090204s2009 d||| |||| 00||| eng d</controlfield><datafield tag="015" ind1=" " ind2=" "><subfield code="a">GBA8C9547</subfield><subfield code="2">dnb</subfield></datafield><datafield tag="020" ind1=" " ind2=" "><subfield code="a">9781934356272</subfield><subfield code="c">Pbk. : USD 32.95</subfield><subfield code="9">978-1-934356-27-2</subfield></datafield><datafield tag="020" ind1=" " ind2=" "><subfield code="a">1934356271</subfield><subfield code="c">Pbk. : USD 32.95</subfield><subfield code="9">1-934356-27-1</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(OCoLC)251217630</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(DE-599)BVBBV035291099</subfield></datafield><datafield tag="040" ind1=" " ind2=" "><subfield code="a">DE-604</subfield><subfield code="b">ger</subfield><subfield code="e">rakwb</subfield></datafield><datafield tag="041" ind1="0" ind2=" "><subfield code="a">eng</subfield></datafield><datafield tag="049" ind1=" " ind2=" "><subfield code="a">DE-703</subfield><subfield code="a">DE-11</subfield></datafield><datafield tag="050" ind1=" " ind2="0"><subfield code="a">QA76.73.P98</subfield></datafield><datafield tag="082" ind1="0" ind2=" "><subfield code="a">005.1/33</subfield><subfield code="2">22</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="245" ind1="1" ind2="0"><subfield code="a">Practical programming</subfield><subfield code="b">an introduction to computer science using Python</subfield><subfield code="c">Jennifer Campbell ...</subfield></datafield><datafield tag="264" ind1=" " ind2="1"><subfield code="a">Raleigh, NC [u.a.]</subfield><subfield code="b">Pragmatic Bookshelf</subfield><subfield code="c">2009</subfield></datafield><datafield tag="300" ind1=" " ind2=" "><subfield code="a">X, 363 S.</subfield><subfield code="b">graph. Darst.</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="520" ind1=" " ind2=" "><subfield code="a">Computers are used in every part of science from ecology to particle physics. This introduction to computer science continually reinforces those ties by using real-world science problems as examples.</subfield></datafield><datafield tag="650" ind1=" " ind2="4"><subfield code="a">Computer programming</subfield></datafield><datafield tag="650" ind1=" " ind2="4"><subfield code="a">Python (Computer program language)</subfield></datafield><datafield tag="650" ind1=" " ind2="4"><subfield code="a">Computer programming</subfield></datafield><datafield tag="650" ind1=" " ind2="4"><subfield code="a">Python (Computer program language)</subfield></datafield><datafield tag="650" ind1="0" ind2="7"><subfield code="a">Python</subfield><subfield code="g">Programmiersprache</subfield><subfield code="0">(DE-588)4434275-5</subfield><subfield code="2">gnd</subfield><subfield code="9">rswk-swf</subfield></datafield><datafield tag="689" ind1="0" ind2="0"><subfield code="a">Python</subfield><subfield code="g">Programmiersprache</subfield><subfield code="0">(DE-588)4434275-5</subfield><subfield code="D">s</subfield></datafield><datafield tag="689" ind1="0" ind2=" "><subfield code="5">DE-604</subfield></datafield><datafield tag="700" ind1="1" ind2=" "><subfield code="a">Campbell, Jennifer</subfield><subfield code="e">Sonstige</subfield><subfield code="4">oth</subfield></datafield><datafield tag="856" ind1="4" ind2="2"><subfield code="m">Digitalisierung UB Bayreuth</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=017096149&sequence=000002&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-017096149</subfield></datafield></record></collection> |
id | DE-604.BV035291099 |
illustrated | Illustrated |
indexdate | 2024-07-09T21:30:34Z |
institution | BVB |
isbn | 9781934356272 1934356271 |
language | English |
oai_aleph_id | oai:aleph.bib-bvb.de:BVB01-017096149 |
oclc_num | 251217630 |
open_access_boolean | |
owner | DE-703 DE-11 |
owner_facet | DE-703 DE-11 |
physical | X, 363 S. graph. Darst. |
publishDate | 2009 |
publishDateSearch | 2009 |
publishDateSort | 2009 |
publisher | Pragmatic Bookshelf |
record_format | marc |
spelling | Practical programming an introduction to computer science using Python Jennifer Campbell ... Raleigh, NC [u.a.] Pragmatic Bookshelf 2009 X, 363 S. graph. Darst. txt rdacontent n rdamedia nc rdacarrier Computers are used in every part of science from ecology to particle physics. This introduction to computer science continually reinforces those ties by using real-world science problems as examples. Computer programming Python (Computer program language) Python Programmiersprache (DE-588)4434275-5 gnd rswk-swf Python Programmiersprache (DE-588)4434275-5 s DE-604 Campbell, Jennifer Sonstige oth Digitalisierung UB Bayreuth application/pdf http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=017096149&sequence=000002&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA Inhaltsverzeichnis |
spellingShingle | Practical programming an introduction to computer science using Python Computer programming Python (Computer program language) Python Programmiersprache (DE-588)4434275-5 gnd |
subject_GND | (DE-588)4434275-5 |
title | Practical programming an introduction to computer science using Python |
title_auth | Practical programming an introduction to computer science using Python |
title_exact_search | Practical programming an introduction to computer science using Python |
title_full | Practical programming an introduction to computer science using Python Jennifer Campbell ... |
title_fullStr | Practical programming an introduction to computer science using Python Jennifer Campbell ... |
title_full_unstemmed | Practical programming an introduction to computer science using Python Jennifer Campbell ... |
title_short | Practical programming |
title_sort | practical programming an introduction to computer science using python |
title_sub | an introduction to computer science using Python |
topic | Computer programming Python (Computer program language) Python Programmiersprache (DE-588)4434275-5 gnd |
topic_facet | Computer programming Python (Computer program language) Python Programmiersprache |
url | http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=017096149&sequence=000002&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA |
work_keys_str_mv | AT campbelljennifer practicalprogramminganintroductiontocomputerscienceusingpython |