Profile Pictureaiebooks

The Python Workbook A Brief Introduction with Exercises and Solutions

$5.99
0 ratings

----------------------------------------------

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.

----------------------------------------------

Table of Contents

---------------------------------------------

Part I Exercises

1 Introduction to Programming

1.1 Storing and Manipulating Values

1.2 Calling Functions

1.3 Comments

1.4 Formatting Values

1.5 Working with Strings

1.6 Exercises

2 Decision Making

2.1 If Statements

2.2 If-Else Statements

2.3 If-Elif-Else Statements

2.4 If-Elif Statements

2.5 Nested If Statements

2.6 Boolean Logic

2.7 Exercises

3 Repetition

3.1 While Loops

3.2 For Loops

3.3 Nested Loops

3.4 Exercises

4 Functions

4.1 Functions with Parameters

4.2 Variables in Functions

4.3 Return Values

4.4 Importing Functions into Other Programs

4.5 Exercises

5 Lists

5.1 Accessing Individual Elements

5.2 Loops and Lists

5.3 Additional List Operations

5.4 Lists as Return Values and Arguments

5.5 Exercises

6 Dictionaries

6.1 Accessing, Modifying and Adding Values

6.2 Removing a Key-Value Pair

6.3 Additional Dictionary Operations

6.4 Loops and Dictionaries

6.5 Dictionaries as Arguments and Return Values

6.6 Exercises

7 Files and Exceptions

7.1 Opening a File

7.2 Reading Input from a File

7.3 End of Line Characters

7.4 Writing Output to a File

7.5 Command Line Arguments

7.6 Exceptions

7.7 Exercises

8 Recursion

8.1 Summing Integers

8.2 Fibonacci Numbers

8.3 Counting Characters

8.4 Exercises

Part II 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

Add to cart
Size
9.56 MB
Length
218 pages
Copy product URL
$5.99

The Python Workbook A Brief Introduction with Exercises and Solutions

0 ratings
Add to cart