Python Practice Lab: Learn How to Code through Interactive Examples

A guide to learning basic programming by writing fun, working programs that gradually become more complex

This classroom-tested, workbook-style text teaches basic programming by guiding readers to write Python programs that mimic interactive chatbots. Unlike textbooks with opaque examples explained in dry, monotonous code, Python Practice Lab engages readers immediately, with more than thirty motivating and hands-on examples. Readers learn by writing fun, working programs that gradually become more difficult as new concepts are introduced. Most exercises are open ended, promoting creativity in the process of learning. Along with coding practice, the book offers brief introductions to a range of other topics in computer science, including recommendation systems, computer vision, and big data, and relates these subjects to the programming concepts covered in the book. Python Practice Lab will be an essential resource for anyone who wants to learn to program, instructors teaching Python to beginners, and students who want to supplement their coursework by building compete and functional programs.

  • Uses natural language and text strings rather than math as the main building blocks for learning about program structure
  • Rewrites code comprehension exercises in equivalent code with inclusive and approachable variables rather than terse, single-letter variables
  • Challenges readers to write a full program in each chapter
  • Presents a selection of projects at the end of the book that integrates the concepts introduced in previous chapters
1147276176
Python Practice Lab: Learn How to Code through Interactive Examples

A guide to learning basic programming by writing fun, working programs that gradually become more complex

This classroom-tested, workbook-style text teaches basic programming by guiding readers to write Python programs that mimic interactive chatbots. Unlike textbooks with opaque examples explained in dry, monotonous code, Python Practice Lab engages readers immediately, with more than thirty motivating and hands-on examples. Readers learn by writing fun, working programs that gradually become more difficult as new concepts are introduced. Most exercises are open ended, promoting creativity in the process of learning. Along with coding practice, the book offers brief introductions to a range of other topics in computer science, including recommendation systems, computer vision, and big data, and relates these subjects to the programming concepts covered in the book. Python Practice Lab will be an essential resource for anyone who wants to learn to program, instructors teaching Python to beginners, and students who want to supplement their coursework by building compete and functional programs.

  • Uses natural language and text strings rather than math as the main building blocks for learning about program structure
  • Rewrites code comprehension exercises in equivalent code with inclusive and approachable variables rather than terse, single-letter variables
  • Challenges readers to write a full program in each chapter
  • Presents a selection of projects at the end of the book that integrates the concepts introduced in previous chapters
29.95 Pre Order
Python Practice Lab: Learn How to Code through Interactive Examples

Python Practice Lab: Learn How to Code through Interactive Examples

Python Practice Lab: Learn How to Code through Interactive Examples

Python Practice Lab: Learn How to Code through Interactive Examples

eBook

$29.95 
Available for Pre-Order. This item will be released on March 10, 2026

Available on Compatible NOOK devices, the free NOOK App and in My Digital Library.
WANT A NOOK?  Explore Now

Related collections and offers


Overview

A guide to learning basic programming by writing fun, working programs that gradually become more complex

This classroom-tested, workbook-style text teaches basic programming by guiding readers to write Python programs that mimic interactive chatbots. Unlike textbooks with opaque examples explained in dry, monotonous code, Python Practice Lab engages readers immediately, with more than thirty motivating and hands-on examples. Readers learn by writing fun, working programs that gradually become more difficult as new concepts are introduced. Most exercises are open ended, promoting creativity in the process of learning. Along with coding practice, the book offers brief introductions to a range of other topics in computer science, including recommendation systems, computer vision, and big data, and relates these subjects to the programming concepts covered in the book. Python Practice Lab will be an essential resource for anyone who wants to learn to program, instructors teaching Python to beginners, and students who want to supplement their coursework by building compete and functional programs.

  • Uses natural language and text strings rather than math as the main building blocks for learning about program structure
  • Rewrites code comprehension exercises in equivalent code with inclusive and approachable variables rather than terse, single-letter variables
  • Challenges readers to write a full program in each chapter
  • Presents a selection of projects at the end of the book that integrates the concepts introduced in previous chapters

Product Details

ISBN-13: 9780691282626
Publisher: Princeton University Press
Publication date: 03/10/2026
Sold by: Barnes & Noble
Format: eBook
Pages: 136

About the Author

Angelica Lim is assistant professor in computing science at Simon Fraser University. An award-winning roboticist and a champion for diversity in computer science, she is the founder of Invent the Future, a summer enrichment program at SFU begun in partnership with the nonprofit AI4ALL. Victor Cheung is lecturer in computing science at Simon Fraser University. An experienced educator teaching a wide range of computer science courses from general introduction to programming to specialized human-centered computing, he is an advocate for improving user experience and user empowerment via user-centered design approaches.

What People are Saying About This

From the Publisher

“The main strength of the book is its workbook-like approach. Its example-led paradigm starts with specific examples for implementation, then introduces the topics necessary to implement those examples—an approach that fits better with how people actually program.”—David Joyner, Georgia Institute of Technology

“I found this book to be a highly engaging and practical resource for introducing fundamental concepts of computer science, particularly through the lens of interactive chatbots, which could instantly prove to be an attraction to learners. The book is quite hands-on and offers a problem-solving approach that heightens learner engagement”—Aakash Tyagi, Texas A&M University

“This book encourages students to get their hands dirty—to start programming and playing with code on day one. There is a nice narrative flow that introduces a task and then introduces more Python to enable students to accomplish enhancements to the initial task. The tone is welcoming and encouraging—you can feel the energy of the authors in the text.”—Anne Bracy, Cornell University

From the B&N Reads Blog

Customer Reviews