
Murach's Python Programming
by Michael Urban, Joel Murach
2nd Edition
Publisher: Murach
Book Details
| Print ISBN | 9781943872749 |
| eText ISBN | 9781943872756 |
| Publisher | Murach |
| Publishing Year | 2021 |
| Edition | 2nd Edition |
| Language | English |
| Pages | 564 |
Murach's Python Programming, 2nd Edition provides a comprehensive textbook designed to teach fundamental and advanced scripting skills using Python 3.9. Updated from earlier coverage of Python 3.5, this volume guides learners through building reliable programs, establishing sound coding habits, and mastering core software principles.
The content is organized into four main sections that guide students through a clear learning path. An initial eight-chapter course introduces fundamental control structures and functional design, leading into advanced core concepts, a dedicated three-chapter block on object-oriented architecture, and practical applications for external data storage and user interfaces.
To reinforce comprehension, the book utilizes a paired-pages design format where syntax diagrams and runnable code examples appear on the right page while explanatory text resides on the left. This structure serves beginner programmers building foundational knowledge, experienced coders adopting Python, and college instructors seeking a practical classroom reference.
Table of Contents
Chapter 1: An introduction to Python programming
- • Introduction to Python
- • Why Python works so well as your first programming language
- • Three types of Python applications
- • The source code for a console application
- • How Python compiles and runs source code
- • How disk storage and main memory work together
- • How to use IDLE to develop programs
- • How to use the interactive shell
- • How to work with source files
- • How to compile and run a program
- • How to fix syntax and runtime errors
Chapter 2: How to write your first programs
- • Basic coding skills
- • How to code statements
- • How to code comments
- • How to use functions
- • How to work with data types and variables
- • How to assign values to variables
- • How to name variables
- • How to work with numeric data
- • How to code arithmetic expressions
- • How to use arithmetic expressions in assignment statements
- • How to use the interactive shell for testing numeric operations
- • How to work with string data
- • How to assign strings to variables
- • How to join strings
- • How to include special characters in strings
- • How to use the interactive shell for testing string operations
- • How to use five of the Python functions
- • How to use the print() function
- • How to use the input() function
- • How to use the int(), float(), and round() functions
- • How to chain functions
- • Two illustrative programs
- • The Miles Per Gallon program
- • The Test Scores program
Chapter 3: How to code control statements
- • How to code Boolean expressions
- • How to use the relational operators
- • How to use the logical operators
- • How to compare strings
- • How to code the selection structure
- • How to code if statements
- • More examples of if statements
- • How to code nested if statements
- • How to use pseudocode to plan if statements
- • Two illustrative programs
- • The Miles Per Gallon program
- • The Invoice program
- • How to use the iteration structure
- • How to code while statements
- • How to code for statements
- • How to code break and continue statements
- • More examples of loops
- • How to use assignment expressions
- • How to use pseudocode to plan a program
- • The Test Scores program
- • The Future Value program
Chapter 4: How to define and use functions and modules
- • How to define and use functions
- • How to define and call a function
- • How to define and call a main() function
- • The Future Value program with functions
- • More skills for defining and using functions
- • How to use default values for arguments
- • How to use named arguments
- • When and how to use local and global variables
- • How to create and use modules
- • How to create a module
- • How to document a module
- • How to import a module
- • The Convert Temperatures program
- • How to use standard modules
- • How to use the random module
- • The Guess the Number game
- • How to plan the functions of a program
- • How to use a hierarchy chart
- • The hierarchy chart for the Pig Dice game
- • The Pig Dice game
Chapter 5: How to test and debug a program
- • An introduction to testing and debugging
- • The three types of errors that can occur
- • Common Python errors
- • Four techniques for testing and debugging
- • How to plan the test runs
- • A simple way to trace code execution
- • How to use top-down coding and testing to simplify debugging
- • How to use the IDLE shell to test functions
- • How to use the IDLE debugger
- • How to set and remove breakpoints
- • How to step through the code
- • How to view the stack
Chapter 6: How to work with lists and tuples
- • Basic skills for working with lists
- • How to create a list
- • How to get and set items
- • How to add and remove items
- • How to process the items in a list
- • More skills for processing the items in a list
- • How lists are passed to functions
- • The Movie List program
- • How to work with a list of lists
- • How to create a list of lists
- • How to process the items in a list of lists
- • The Movie List 2D program
- • More skills for working with lists
- • How to count, reverse, and sort the items in a list
- • How to get minimum, maximum, sum, and random values from a list
- • How to copy, slice, and concatenate lists
- • How to map, filter, and reduce the items in a list
- • How to work with list comprehensions
- • How to work with tuples
- • How to create a tuple
- • How to get items from a tuple
- • The Number Crunching program
Chapter 7: How to work with file I/O
- • An introduction to file I/O
- • How file I/O works
- • How to open and close a file
- • How to use text files
- • How to write a text file
- • How to read a text file
- • How to work with a list in a text file
- • The Movie List 1.0 program
- • How to use CSV files
- • How to write a CSV file
- • How to read a CSV file
- • How to modify the CSV format
- • The Movie List 2.0 program
- • How to use binary files
- • How to work with a binary file
- • The Movie List 3.0 program
Chapter 8: How to handle exceptions
- • How to handle a single exception
- • How exceptions work
- • How to use a try statement to handle one type of exception
- • The Total Calculator program
- • How to handle multiple exceptions
- • How to use a try statement to handle multiple exceptions
- • How to get the information from an exception object
- • The Movie List 2.0 program
- • Two more skills
- • How to use a finally clause
- • How to raise an exception
Chapter 9: How to work with numbers
- • Basic skills for working with numbers
- • How floating-point numbers work
- • How to use the math module
- • How to format numbers
- • How to use format specifications with f-strings
- • How to use the locale module
- • How to fix rounding errors
- • How to work with decimal numbers
- • How to use the decimal module
- • The Invoice program with decimal numbers
- • The Future Value program with decimal numbers
Chapter 10: How to work with strings
- • Basic skills for working with strings
- • Unicode, indexes, slicing, duplicating, and multiline strings
- • How to search a string
- • How to loop through the characters in a string
- • How to use basic string methods
- • How to find, remove, and replace parts of a string
- • The Create Account program
- • How to split and join strings
- • How to split a string into a list of strings
- • How to join strings
- • The Movie List 2.0 program
- • The Word Counter program
- • The Hangman game
- • The user interface
- • The hierarchy chart
- • The wordlist module
- • The hangman module
Chapter 11: How to work with dates and times
- • How to get started with dates and times
- • How to create date, time, and datetime objects
- • How to create datetime objects by parsing strings
- • How to format dates and times
- • How to work with spans of time
- • The Invoice Due Date program
- • The Timer program
- • More skills for working with dates and times
- • How to get date and time parts
- • How to compare date/time objects
- • The Hotel Reservation program
Chapter 12: How to work with dictionaries
- • How to get started with dictionaries
- • How to create a dictionary
- • How to get, set, and add items
- • How to delete items
- • How to loop through keys and values
- • How to convert between dictionaries and lists
- • The Country Code program
- • The Word Counter program
- • More skills for working with dictionaries
- • How to use the merge and update operators
- • How to use dictionaries with complex objects as values
- • The Book Catalog program
Chapter 13: How to work with recursion and algorithms
- • An introduction to recursion
- • How recursion works in Python
- • How to use recursion to add a range of numbers
- • Some common recursive algorithms
- • How to compute the factorial of a number
- • How to compute a Fibonacci series
- • An algorithm for solving the Towers of Hanoi puzzle
- • The code for solving the Towers of Hanoi puzzle
Chapter 14: How to define and use your own classes
- • An introduction to classes and objects
- • Two UML diagrams for the Product class
- • Code that defines a Product class
- • Code that uses a Product class
- • How to create and use objects
- • How to define a class
- • How to code a constructor and attributes
- • How to code methods
- • The Product Viewer 1.0 program
- • How work with object composition
- • How object composition works
- • The Die and Dice classes
- • The Dice Roller 1.0 program
- • How to work with encapsulation
- • How object encapsulation works
- • How to hide attributes
- • How to access hidden attributes with methods
- • How to access hidden attributes with properties
Customer Reviews
0.0
0 reviews
No reviews yet. Be the first to review this book!
Write a Review
Reviewed by GradeFocus Editorial Team
▶Research Sources (13)
- Python Programming Book (2nd Edition)
- Murach's Python Programming Guide | PDF
- Murach's Python Programming 2nd Edition 2
- IntroductoryBooks - Python Wiki
- Murach's Python Programming (2nd Edition)
- Find Murach's Python Programming (2nd Edition)
- Python Crash Course, 2nd edition
- Murach's Python Programming (2nd Edition) | Rent | 9781943872749
- Murach's Python Programming (2nd Edition)
- Murach's Python Programming (2nd Edition)
- Murach's Python Programming (2nd Edition)
- Murach's Python Programming (2nd Edition) (Paperback)
- Murach's Python Programming (2nd Edition)





