Skip to main content

The Python Workbook

A Brief Introduction with Exercises and Solutions

  • Textbook
  • © 2019
  • Latest edition


  • Substantially updated and expanded new edition, now featuring concise introductions to each chapter outlining the core concepts needed to solve the exercises
  • Presents numerous exercises, many of which with complete solutions
  • Supports the solutions with additional notes that explain the technique used and highlight specific points of Python syntax
  • Includes a mixture of classic computer science exercises and exercises that make connections to other disciplines

Part of the book series: Texts in Computer Science (TCS)

This is a preview of subscription content, log in via an institution to check access.

Access this book

eBook USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 49.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book USD 54.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access

Licence this eBook for your library

Institutional subscriptions

About this book

This student-friendly textbook encourages the development of programming skills through active practice by focusing on exercises that support hands-on learning. The Python Workbook provides a compendium of 186 exercises, spanning a variety of academic disciplines and everyday situations. Solutions to selected exercises are also provided, supported by brief annotations that explain the technique used to solve the problem, or highlight a specific point of Python syntax.

This enhanced new edition has been thoroughly updated and expanded with additional exercises, along with concise introductions that outline the core concepts needed to solve them. The exercises and solutions require no prior background knowledge, beyond the material covered in a typical introductory Python programming course.

Features: uses an accessible writing style and easy-to-follow structure; includes a mixture of classic exercises from the fields of computer science and mathematics, along with exercises that connect to other academic disciplines; presents the solutions to approximately half of the exercises; provides annotations alongside the solutions, which explain the approach taken to solve the problem and relevant aspects of Python syntax; offers a variety of exercises of different lengths and difficulties; contains exercises that encourage the development of programming skills using if statements, loops, basic functions, lists, dictionaries, files, and recursive functions.

Undergraduate students enrolled in their first programming course and wishing to enhance their programming abilities will find the exercises and solutions provided in this book to be ideal for their needs.

Similar content being viewed by others


Table of contents (16 chapters)

  1. Exercises

  2. Solutions

Authors and Affiliations

  • Department of Computer Science, University of Calgary, Calgary, Canada

    Ben Stephenson

About the author

Dr. Ben Stephenson is a Teaching Professor in the Department of Computer Science at the University of Calgary, AB, Canada. His other publications include the Springer textbook Fundamentals of Discrete Math for Computer Science: A Problem-Solving Primer.

Bibliographic Information

  • Book Title: The Python Workbook

  • Book Subtitle: A Brief Introduction with Exercises and Solutions

  • Authors: Ben Stephenson

  • Series Title: Texts in Computer Science

  • DOI:

  • Publisher: Springer Cham

  • eBook Packages: Computer Science, Computer Science (R0)

  • Copyright Information: Springer Nature Switzerland AG 2019

  • Hardcover ISBN: 978-3-030-18872-6Published: 18 July 2019

  • Softcover ISBN: 978-3-030-18875-7Published: 15 August 2020

  • eBook ISBN: 978-3-030-18873-3Published: 05 July 2019

  • Series ISSN: 1868-0941

  • Series E-ISSN: 1868-095X

  • Edition Number: 2

  • Number of Pages: X, 219

  • Number of Illustrations: 125 b/w illustrations, 359 illustrations in colour

  • Topics: Programming Languages, Compilers, Interpreters, Python, Computational Intelligence

Publish with us