ENGLISH

Starting out with python

Book information

Publisher
Pearson
ISBN
9780133582734, 1292065508, 9781292065502, 0133582736
Language
english
Format
PDF
Filesize
27 MB (28636940 bytes)
Edition
Third edition
Pages
\635
Time added
2020-11-29 04:11:10

Description

"This text is intended for a one-semester introductory programming course for students with limited programming experience.""It is also appropriate for readers interested in introductory programming." In "Starting Out with Python(R), Third Edition" Tony Gaddis' evenly-paced, accessible coverage introduces students to the basics of programming and prepares them to transition into more complicated languages. Python, an easy-to-learn and increasingly popular object-oriented language, allows readers to become comfortable with the fundamentals of programming without the troublesome syntax that can be challenging for novices. With the knowledge acquired using Python, students gain confidence in their skills and learn to recognize the logic behind developing high-quality programs."Starting Out with Python" discusses control structures, functions, arrays, and pointers before objects and classes. As with all Gaddis texts, clear and easy-to-read code listings, concise and practical real-world examples, detail-oriented explanations, and an abundance of exercises appear in every chapter. MyProgrammingLab for "Starting Out with Python" is a total learning package. MyProgrammingLab is an online homework, tutorial, and assessment program that truly engages students in learning. It helps students better prepare for class, quizzes, and exams-resulting in better performance in the course-and provides educators a dynamic set of tools for gauging individual and class progress. Teaching and Learning ExperienceThis program presents a better teaching and learning experience--for you and your students. It will help: Personalize Learning with MyProgrammingLab: Through the power of practice and immediate personalized feedback, MyProgrammingLab helps students fully grasp the logic, semantics, and syntax of programming.Enhance Learning with the Gaddis Approach: Gaddis's accessible approach features clear and easy-to-read code listings, concise real-world examples, and exercises in every chapter. Support Instructors and Students: Student and instructor resources are available to expand on the topics presented in the text. Keep Your Course Current: This edition's programs have been tested with Python 3.3.2.Note: You are purchasing the standalone text. MyProgrammingLab does not come automatically packaged with the text. To purchase MyProgrammingLab, please visit: myprogramminglab.com or you can purchase a package of the physical text + MyProgrammingLab by searching the Pearson Higher Education web site. MyProgrammingLab is not a self-paced technology and should only be purchased when required by an instructor. Cover......Page 1 Title......Page 5 Copyright......Page 6 Contents in a Glance......Page 7 Contents......Page 9 Preface......Page 13 1.1 Introduction......Page 21 1.2 Hardware and Software......Page 22 1.3 How Computers Store Data......Page 27 1.4 How a Program Works......Page 32 1.5 Using Python......Page 40 2.1 Designing a Program......Page 51 2.2 Input, Processing, and Output......Page 55 2.3 Displaying Output with the print Function......Page 56 2.4 Comments......Page 59 2.5 Variables......Page 60 2.6 Reading Input from the Keyboard......Page 69 2.7 Performing Calculations......Page 73 2.8 More About Data Output......Page 85 3.1 The if Statement......Page 101 3.2 The if-else Statement......Page 110 3.3 Comparing Strings......Page 113 3.4 Nested Decision Structures and the if-elif-else Statement......Page 117 3.5 Logical Operators......Page 125 3.6 Boolean Variables......Page 131 4.1 Introduction to Repetition Structures......Page 141 4.2 The while Loop: A Condition-Controlled Loop......Page 142 4.3 The for Loop: A Count-Controlled Loop......Page 150 4.4 Calculating a Running Total......Page 161 4.5 Sentinels......Page 164 4.6 Input Validation Loops......Page 167 4.7 Nested Loops......Page 172 5.1 Introduction to Functions......Page 185 5.2 Defining and Calling a Void Function......Page 188 5.3 Designing a Program to Use Functions......Page 193 5.4 Local Variables......Page 199 5.5 Passing Arguments to Functions......Page 201 5.6 Global Variables and Global Constants......Page 211 5.7 Introduction to Value-Returning Functions: Generating Random Numbers......Page 215 5.8 Writing Your Own Value-Returning Functions......Page 226 5.9 The math Module......Page 237 5.10 Storing Functions in Modules......Page 240 6.1 Introduction to File Input and Output......Page 255 6.2 Using Loops to Process Files......Page 272 6.3 Processing Records......Page 279 6.4 Exceptions......Page 292 7.2 Introduction to Lists......Page 311 7.3 List Slicing......Page 319 7.4 Finding Items in Lists with the in Operator......Page 322 7.5 List Methods and Useful Built-in Functions......Page 323 7.6 Copying Lists......Page 330 7.7 Processing Lists......Page 332 7.8 Two-Dimensional Lists......Page 344 7.9 Tuples......Page 348 8.1 Basic String Operations......Page 359 8.2 String Slicing......Page 367 8.3 Testing, Searching, and Manipulating Strings......Page 371 9.1 Dictionaries......Page 389 9.2 Sets......Page 412 9.3 Serializing Objects......Page 424 10.1 Procedural and Object-Oriented Programming......Page 439 10.2 Classes......Page 443 10.3 Working with Instances......Page 460 10.4 Techniques for Designing Classes......Page 482 11.1 Introduction to Inheritance......Page 501 11.2 Polymorphism......Page 516 12.1 Introduction to Recursion......Page 527 12.2 Problem Solving with Recursion......Page 530 12.3 Examples of Recursive Algorithms......Page 534 13.1 Graphical User Interfaces......Page 547 13.2 Using the tkinter Module......Page 549 13.3 Display Text with Label Widgets......Page 552 13.4 Organizing Widgets with Frames......Page 555 13.5 Button Widgets and Info Dialog Boxes......Page 558 13.6 Getting Input with the Entry Widget......Page 561 13.7 Using Labels as Output Fields......Page 564 13.8 Radio Buttons and Check Buttons......Page 572 Appendix A Installing Python......Page 585 Appendix B Introduction to IDLE......Page 589 Appendix C The ASCII Character Set......Page 597 Appendix D Answers to Checkpoints......Page 599 A......Page 615 C......Page 616 D......Page 618 F......Page 619 I......Page 621 L......Page 623 N......Page 624 P......Page 625 R......Page 629 S......Page 630 T......Page 632 W......Page 633 Z......Page 634 Credits......Page 635

Similar books