The Python Workbook: A Brief Introduction with Exercises and Solutions (Texts in Computer Science)
Authors: Ben Stephenson
ISBN-10: 3030188728
ISBN-13: 9783030188726
Edition 版本: 2nd ed. 2019
Released: 2019-07-06
Pages: 219 pages
Book Description
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.
Part l.Exercises
1.Introduction to Programming
2.Decision Making
3.Repetition
4.Functions
5.Lists
6.Dictionaries
7.Files and Exceptions
8.Recursion
Part ll.Solutions
9.Solutions to the Introduction to Programming Exercises
10.Solutions to the Decision Making Exercises
11.Solutions to the Repetition Exercises
12.Solutions to the Function Exercises
13.Solutions to the List Exercises
14.Solutions to the Dictionary Exercises
15.Solutions to the File and Exception Exercises
16.Solutions to the Recursion Exercises