Book description
This book is for anyone who wants to understand computer programming. You'll learn to program in a language that' s used in millions of smartphones, tablets, and PCs. You'll code along with the book, writing programs to solve real-world problems as you learn the fundamentals of programming using Python 3. You'll learn about design, algorithms, testing, and debugging, and come away with all the tools you need to produce quality code. In this second edition, we've updated almost all the material, incorporating the lessons we've learned over the past five years of teaching Python to people new to programming.
Publisher resources
Table of contents
- Acknowledgments
- Preface
- 1. What’s Programming?
-
2. Hello, Python
- How Does a Computer Run a Python Program?
- Expressions and Values: Arithmetic in Python
- What Is a Type?
- Variables and Computer Memory: Remembering Values
- How Python Tells You Something Went Wrong
- A Single Statement That Spans Multiple Lines
- Describing Code
- Making Code Readable
- The Object of This Chapter
- Exercises
-
3. Designing and Using Functions
- Functions That Python Provides
- Memory Addresses: How Python Keeps Track of Values
- Defining Our Own Functions
- Using Local Variables for Temporary Storage
- Tracing Function Calls in the Memory Model
- Designing New Functions: A Recipe
- Writing and Running a Program
- Omitting a Return Statement: None
- Dealing with Situations That Your Code Doesn’t Handle
- What Did You Call That?
- Exercises
- 4. Working with Text
- 5. Making Choices
- 6. A Modular Approach to Program Organization
- 7. Using Methods
- 8. Storing Collections of Data Using Lists
- 9. Repeating Code Using Loops
- 10. Reading and Writing Files
- 11. Storing Data Using Other Collection Types
- 12. Designing Algorithms
- 13. Searching and Sorting
- 14. Object-Oriented Programming
- 15. Testing and Debugging
- 16. Creating Graphical User Interfaces
- 17. Databases
- Bibliography
Product information
- Title: Practical Programming, 2nd Edition
- Author(s):
- Release date: September 2013
- Publisher(s): Pragmatic Bookshelf
- ISBN: 9781937785451
You might also like
book
Deciphering Data Architectures
Data fabric, data lakehouse, and data mesh have recently appeared as viable alternatives to the modern …
book
Code with the Wisdom of the Crowd
Build systems faster and more effectively with Mob Programming. Mob Programming is an approach to developing …
book
Generative Deep Learning, 2nd Edition
Generative AI is the hottest topic in tech. This practical book teaches machine learning engineers and …
book
Mythical Man-Month, The: Essays on Software Engineering, Anniversary Edition, 2nd Edition
Few books on software project management have been as influential and timeless as The Mythical Man-Month. …