Yes. While not the same book, Think Python by Allen Downey (2nd Edition) is free and legal in PDF form. It covers similar topics but with less emphasis on computing practice.
The Practice of Computing Using Python (3rd Edition) by William F. Punch and Richard Enbody is a widely used textbook for introductory computer science courses that emphasizes practical problem solving with Python. This article summarizes the book's scope, strengths, and how to use it effectively, plus guidance for learners seeking a downloadable PDF. The Practice of Computing Using Python (3rd Edition)
If you want a clean, searchable, properly formatted PDF of the 3rd Edition, use these authorized sources. They are the actual "top" results you should trust. and how to use it effectively
Week 1: Basics — syntax, variables, expressions, control flow.
Week 2: Functions and modular code.
Week 3: Strings and text processing.
Week 4: Lists and basic data structures.
Week 5: Dictionaries, sets, and file I/O.
Week 6: Testing, debugging, and program design.
Week 7: Recursion and simple algorithms (search/sort).
Week 8: Capstone project — apply multiple chapters to a data-processing task. and file I/O.
Week 6: Testing
Even if you cannot secure a PDF, you can succeed in your Python course using legitimate tools that complement the book.