Page 1 OpenStax
,2Official | OpenStax. Page 2OpenStax #Official | Exam Review: 2025 | /2026
Introduction to Python Programming
Instructor Solutions Manual
TABLE OF CONTENTS
Chapter 1 9
1.1 9
Favorite song. 9
1.2 9
Frost poem. 9
1.2 9
Name and likes. 9
1.3 10
Final score. 10
1.4 10
Punctuation. 10
1.4 10
Name length. 10
1.5 11
Values and types. 11
1.5 11
Meters to feet. 11
1.6 11
Three errors. 11
1.6 12
Wrong symbols. 12
1.7 12
Whose birthday. 12
1.7 12
Gravity calculation. 12
1.9 13
Fun facts. 13
1.9 14
Mad lib. 14
Chapter 2 14
2.2 14
Grade average. 14
For more free, peer-reviewed, openly licensed resources visit OpenStax.org.
2
Page 2 OpenStax
,3Official | OpenStax. Page 3OpenStax #Official | Exam Review: 2025 | /2026
Introduction to Python Programming
2.2 15
Cups of water. 15
2.2 15
Product as float. 15
2.3 15
After the point. 15
2.3 16
Print n times. 16
2.4 16
Inaccurate tips. 16
2.4 16
Area of a triangle. 16
2.5 17
Change machine. 17
2.5 17
Arrival time. 17
2.6 18
Quadratic formula. 18
2.6 18
Cylinder formulas. 18
2.7 19
Five quotes. 19
2.7 19
Spaced out. 19
2.9 20
Baking bread. 20
2.9 21
Tip calculator. 21
Chapter 3 21
3.1 21
Shift cipher. 21
3.1 22
Hopper quote. 22
3.2 22
Mad lib (f-string). 22
3.2 22
Wage calculator. 22
For more free, peer-reviewed, openly licensed resources visit OpenStax.org.
3
Page 3 OpenStax
, 4Official | OpenStax. Page 4OpenStax #Official | Exam Review: 2025 | /2026
Introduction to Python Programming
3.4 23
List basics. 23
3.5 23
Creating a tuple with user input. 23
3.5 24
Creating a tuple from a list. 24
Chapter 4 24
4.1 24
Programming practice: Friday boolean. 24
4.1 24
Programming practice: Even numbers. 24
4.2 25
Improved division. 25
4.2 25
Converting temperature units. 25
4.3 25
Speed limits. 25
4.5 26
Crochet hook size conversion. 26
4.5 26
Color wavelengths. 26
4.6 27
Programming practice: Meal orders. 27
4.7 28
Ping values. 28
Chapter 5 28
5.1 28
Reading inputs in a while loop. 28
5.1 28
Sum of odd numbers. 28
5.2 29
Counting spaces. 29
5.2 29
Sequences. 29
5.3 30
Printing a triangle of numbers. 30
5.3 30
For more free, peer-reviewed, openly licensed resources visit OpenStax.org.
4
Page 4 OpenStax