The Python Workbook
Introduction
While other textbooks devote their pages to explaining introductory programming concepts, The Python Workbook focuses exclusively on exercises, following the philosophy that computer programming is a skill best learned through experience and practice.
Designed to support and encourage hands-on learning about programming, this student-friendly work contains 174 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 specific points of Python syntax. No background knowledge is required to solve the exercises, beyond the material covered in a typical introductory Python programming course.
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 help the development of programming skills using if statements, loops, basic functions, lists, dictionaries, files, and recursive functions
Undergraduate students undergoing 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.
Dr. Ben Stephenson is a Senior Instructor in the Department of Computer Science at the University of Calgary.
TABLE OF CONTENTS
Front Matter
Pages i-xvi
Exercises
Front Matter
Pages 1-1
Introduction to Programming Exercises
Pages 3-13
If Statement Exercises
Pages 15-27
Loop Exercises
Pages 29-38
Function Exercises
Pages 39-47
List Exercises
Pages 49-60
Dictionary Exercises
Pages 61-67
File and Exception Exercises
Pages 69-78
Recursion Exercises
Pages 79-84
Solutions
Front Matter
Pages 85-85
Introduction to Programming Solutions
Pages 87-95
If Statement Solutions
Pages 97-106
Loop Solutions
Pages 107-113
Function Solutions
Pages 115-126
List Solutions
Pages 127-137
Dictionary Solutions
Pages 139-144
File and Exception Solutions
Pages 145-155
Recursion Solutions
Pages 157-161
Back Matter
Pages 163-165
__________________________________________
Bibliographic information
DOI: https://doi.org/10.1007/978-3-319-14240-1
Copyright Information: Springer International Publishing Switzerland 2014
Publisher Name: Springer, Cham
eBook Packages: Computer Science
Print ISBN: 978-3-319-14239-5
Online ISBN: 978-3-319-14240-1
You will get a PDF (14MB) file