-->
Navigation
Starting Out with Python, 4th Edition

Starting Out with Python, 4th Edition

Now pay Easier and Secure using Paypal
Price:

Read more

Tony Gaddis

Haywood Community College

LCSH: Python (Computer program language)


Contents in a Glance

Introduction to Computers and Programming
Input, Processing, and Output
Decision Structures and Boolean Logic
Repetition Structures
Functions
Files and Exceptions 
Lists and Tuples
More About Strings
Dictionaries and Sets
Classes and Object-Oriented Programming
Inheritance 
Recursion
GUI Programming
Appendix A Installing Python 
Appendix B Introduction to IDLE
Appendix C The ASCII Character Set
Appendix D Predefined Named Colors 
Appendix E More About the import Statement
Appendix F Installing Modules with the pip Utility 
Appendix G Answers to Checkpoints

e-books shop
e-books shop
Purchase Now !
Just with Paypal



Book Details
 Price
 8.00
 Pages
 1613 p
 File Size 
 12,285 KB
 File Type
 PDF format
 ISBN
 978-0-13444432-1 (alk. paper) 
 0-13-4444329 (alk. paper)
 Copyright©   
 2018, 2015, 2012, 2009
 Pearson Education, Inc

Preface
Welcome to Starting Out with Python, Fourth Edition. This book uses the
Python language to teach programming concepts and problem-solving
skills, without assuming any previous programming experience. With
easy-to-understand examples, pseudocode, flowcharts, and other tools,
the student learns how to design the logic of programs then implement
those programs using Python. This book is ideal for an introductory
programming course or a programming logic and design course using
Python as the language.
As with all the books in the Starting Out With series, the hallmark of this
text is its clear, friendly, and easy-to-understand writing. In addition, it is
rich in example programs that are concise and practical. The programs in
this book include short examples that highlight specific programming
topics, as well as more involved examples that focus on problem solving.
Each chapter provides one or more case studies that provide step-bystep
analysis of a specific problem and shows the student how to solve it.

Control Structures First, Then Classes
Python is a fully object-oriented programming language, but students do
not have to understand object-oriented concepts to start programming in
Python. This text first introduces the student to the fundamentals of data
storage, input and output, control structures, functions, sequences and
lists, file I/O, and objects that are created from standard library classes.
Then the student learns to write classes, explores the topics of
inheritance and polymorphism, and learns to write recursive functions.
Finally, the student learns to develop simple event-driven GUI applications.

Organization of the Text
The text teaches programming in a step-by-step manner. Each chapter
covers a major set of topics and builds knowledge as students progress
through the book. Although the chapters can be easily taught in their
existing sequence, you do have some flexibility in the order that you wish
to cover them. Figure P-1 shows chapter dependencies. Each box
represents a chapter or a group of chapters. An arrow points from a
chapter to the chapter that must be covered before it.

Table of Contents
Preface xiii
Chapter 1 Introduction to Computers and Programming 1
1.1 Introduction 1
1.2 Hardware and Software 2
1.3 How Computers Store Data 7
1.4 How a Program Works 12
1.5 Using Python 20
Review Questions 24
Chapter 2 Input, Processing, and Output 31
2.1 Designing a Program 31
2.2 Input, Processing, and Output 35
2.3 Displaying Output with the print Function 36
2.4 Comments 39
2.5 Variables 40
2.6 Reading Input from the Keyboard 49
2.7 Performing Calculations 53
2.8 More About Data Output 65
2.9 Named Constants 73
2.10 Introduction to Turtle Graphics 74
Review Questions 100
Programming Exercises 104
Chapter 3 Decision Structures and Boolean Logic 109
3.1 The if Statement 109
3.2 The if-else Statement 118
3.3 Comparing Strings 121
3.4 Nested Decision Structures and the if-elif-else Statement
125
3.5 Logical Operators 133
3.6 Boolean Variables 139
3.7 Turtle Graphics: Determining the State of the Turtle 140
Review Questions 148
Programming Exercises 151
Chapter 4 Repetition Structures 159
4.1 Introduction to Repetition Structures 159
4.2 The while Loop: A Condition-Controlled Loop 160
4.3 The for Loop: A Count-Controlled Loop 168
4.4 Calculating a Running Total 179
4.5 Sentinels 182
4.6 Input Validation Loops 185
4.7 Nested Loops 190
4.8 Turtle Graphics: Using Loops to Draw Designs 197
Review Questions 201
Programming Exercises 203
Chapter 5 Functions 209
5.1 Introduction to Functions 209
5.2 Defining and Calling a Void Function 212
5.3 Designing a Program to Use Functions 217
5.4 Local Variables 223
5.5 Passing Arguments to Functions 225
5.6 Global Variables and Global Constants 235
5.7 Introduction to Value-Returning Functions: Generating
Random Numbers 239
5.8 Writing Your Own Value-Returning Functions 250
5.9 The math Module 261
5.10 Storing Functions in Modules 264
5.11 Turtle Graphics: Modularizing Code with Functions 268
Review Questions 275
Programming Exercises 280
Chapter 6 Files and Exceptions 287
6.1 Introduction to File Input and Output 287
6.2 Using Loops to Process Files 304
6.3 Processing Records 311
6.4 Exceptions 324
Review Questions 337
Programming Exercises 340
Chapter 7 Lists and Tuples 343
7.1 Sequences 343
7.2 Introduction to Lists 343
7.3 List Slicing 351
7.4 Finding Items in Lists with the in Operator 354
7.5 List Methods and Useful Built-in Functions 355
7.6 Copying Lists 362
7.7 Processing Lists 364
7.8 Two-Dimensional Lists 376
7.9 Tuples 380
7.10 Plotting List Data with the matplotlib Package 383
Review Questions 399
Programming Exercises 402
Chapter 8 More About Strings 407
8.1 Basic String Operations 407
8.2 String Slicing 415
8.3 Testing, Searching, and Manipulating Strings 419
Review Questions 431
Programming Exercises 434
Chapter 9 Dictionaries and Sets 439
9.1 Dictionaries 439
9.2 Sets 462
9.3 Serializing Objects 474
Review Questions 480
Programming Exercises 485
Chapter 10 Classes and Object-Oriented Programming 489
10.1 Procedural and Object-Oriented Programming 489
10.2 Classes 493
10.3 Working with Instances 510
10.4 Techniques for Designing Classes 532
Review Questions 543
Programming Exercises 546
Chapter 11 Inheritance 551
11.1 Introduction to Inheritance 551
11.2 Polymorphism 566
Review Questions 572
Programming Exercises 574
Chapter 12 Recursion 577
12.1 Introduction to Recursion 577
12.2 Problem Solving with Recursion 580
12.3 Examples of Recursive Algorithms 584
Review Questions 592
Programming Exercises 594
Chapter 13 GUI Programming 597
13.1 Graphical User Interfaces 597
13.2 Using the tkinter Module 599
13.3 Display Text with Label Widgets 602
13.4 Organizing Widgets with Frames 605
13.5 Button Widgets and Info Dialog Boxes 608
13.6 Getting Input with the Entry Widget 611
13.7 Using Labels as Output Fields 614
13.8 Radio Buttons and Check Buttons 622
13.9 Drawing Shapes with the Canvas Widget 629
Review Questions 651
Programming Exercises 654
Appendix A Installing Python 659
Appendix B Introduction to IDLE 663
Appendix C The ASCII Character Set 671
Appendix D Predefined Named Colors 673
Appendix E More About the import Statement 679
Appendix F Installing Modules with the pip Utility 683
Appendix G Answers to Checkpoints 685
Index 703
Credits 721


Bookscreen
e-books shop

About the Author
Tony Gaddis is the principal author of the Starting Out With series of
textbooks. Tony has nearly two decades of experience teaching
computer science courses at Haywood Community College. He is a
highly acclaimed instructor who was previously selected as the North
Carolina Community College “Teacher of the Year” and has received the
Teaching Excellence award from the National Institute for Staff and
Organizational Development. The Starting Out with series includes
introductory books covering C++, Java™, Microsoft Visual Basic ,
Microsoft C# , Python , Programming Logic and Design, Alice, and App
Inventor, all published by Pearson. More information about all these

0