Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 4 out of 167 pages
Exam (elaborations)

Complete Solutions Manual & Answer Guide — Fundamentals of Python: First Programs, 3rd Edition — Kenneth A. Lambert, 2021 — ISBN 9780357881019 — All Chapters Covered 1–13 (Latest Update)

Document preview thumbnail
Preview 4 out of 167 pages

This verified Solutions Manual & Answer Guide for Fundamentals of Python: First Programs (3rd Edition) by Kenneth A. Lambert (published 2021, ISBN 9780357881019) offers fully worked solutions and annotated code examples for every chapter in the textbook. Designed for introductory programming courses, the guide supports instructors and learners through Python’s core concepts, from foundational syntax to data visualization, object-oriented design, and multithreading. The official chapter sequence begins with Chapter 1: Introduction, followed by Chapter 2: Software Development, Data Types, and Expressions, Chapter 3: Loops and Selection Statements, Chapter 4: Strings and Text Files, Chapter 5: Lists and Dictionaries, and Chapter 6: Design with Functions. The midsection continues with Chapter 7: Design with Recursion, Chapter 8: Simple Graphics and Image Processing, and Chapter 9: Graphical User Interfaces. Advanced topics are addressed in Chapter 10: Design with Classes, Chapter 11: Data Analysis and Visualization, Chapter 12: Multithreading, Networks, and Client/Server Programming, and Chapter 13: Searching, Sorting, and Complexity Analysis.

Content preview

Fundamentals of Python:
First Programs – 3rd Edition
ST

SOLUTION
UV

MANUAL &
IA

ANSWER GUIDE
_A
PP

Kenneth Lambert
RO

Comprehensive Solution Manual for
VE

Instructors and Students
D?

© Kenneth Lambert

All rights reserved. Reproduction or distribution without permission is prohibited.




©MedConnoisseur

, Solution and Answer Guide For All Chapters: Lambert, Fundamentals of Python: First Programs, 3e, CY24, 9780357881019; Chapter 1, Introduction




Solution and Answer Guide For All
Chapters
ST
LAMBERT, FUNDAMENTALS OF PYTHON: FIRST PROGRAMS, 3E, CY24, 9780357881019; CHAPTER 1,
INTRODUCTION


TABLE OF CONTENTS
UV
Exercise Solutions ....................................................................................................................................... 1
Exercise 1.1 ............................................................................................................................................... 1
Exercise 1.2 ............................................................................................................................................... 2
IA
Exercise 1.3 ............................................................................................................................................... 3
Review Questions Answers......................................................................................................................... 4
Programming Exercises Solutions ............................................................................................................. 8
_A
Debugging Exercises Solutions .................................................................................................................. 8




EXERCISE SOLUTIONS
PP
EXERCISE 1.1
1. List three common types of computing agents.

Solution:
RO
Human beings, desktop computers, cell phones

2. Write an algorithm that describes the second part of the process of making change (counting out the coins
and bills).
VE
Solution:

There are various ways to do this, but here is one:

Repeat
Select the largest unit of money that is less than or equal to the remaining change
D?
Subtract this unit from the remaining change
Until the remaining change is 0
The collection of units selected represent the change


3. Write an algorithm that describes a common task, such as baking a cake.




1

, Solution and Answer Guide For All Chapters: Lambert, Fundamentals of Python: First Programs, 3e, CY24, 9780357881019; Chapter 1, Introduction


Solution:

There are various ways to do this, but here is one:

Preheat an oven to 375 degrees
ST
Add 1 cup of water and 1 egg to a mixing bowl
Beat the liquid mixture in the bowl until the ingredients are blended
Add the contents of a boxed cake mix to the mixing bowl
Beat the mixture in the bowl until the ingredients are blended
Pour the contents of the mixing bowl into a lightly greased cake pan
UV
Bake the cake in the oven for 45 minutes


4. Describe an instruction that is not well defined and thus could not be included as a step in an algorithm.
Give an example of such an instruction.
IA
Solution:

Attempting to divide a number by 0

5. In what sense is a laptop computer a general-purpose problem-solving machine?
_A
Solution:

A laptop computer is a general-purpose problem-solving machine because it is programmable and can
solve any problem for which there is an algorithm.
PP
6. List four devices that use computers and describe the information that they process. (Hint: Think of the
inputs and outputs of the devices.)

Solution:
Digital camera—images, music player—sound, cell phone—text, ATM—numbers
RO
EXERCISE 1.2
1. List two examples of input devices and two examples of output devices.

Solution:
VE
Input devices—keyboard and mouse, output devices—monitor and speakers


2. What does the central processing unit (CPU) do?

Solution:
D?
The CPU fetches, decodes, and executes instructions.


3. How is information represented in hardware memory?

Solution:
Information is represented using binary notation, which in hardware is a pattern of voltage levels.



2

, Solution and Answer Guide For All Chapters: Lambert, Fundamentals of Python: First Programs, 3e, CY24, 9780357881019; Chapter 1, Introduction


4. What is the difference between a terminal-based interface and a graphical user interface?

Solution:
A terminal-based interface supports only the input and output of text with a keyboard and monitor. A
graphical user interface supports the output of images and the manipulation of them with a pointing device,
ST
the mouse.


5. What role do translators play in the programming process?
UV
Solution:
A translator converts a program written in a high-level language (human readable and writable) to an
equivalent program in a low-level language (machine readable and executable).


EXERCISE 1.3
1. Describe what happens when the programmer enters the string "Greetings!" in the Python shell.
IA
Solution:

Python reads the string "Greetings!", evaluates it, and displays this string (including single quotes)
in the shell.
_A
2. Write a line of code that prompts the user for their name and saves the user’s input in a variable called
name.
PP
Solution:
name = input("Enter your name: ")


3. What is a Python script?
RO
Solution:

A Python script is a complete Python program that can be run from a computer’s operating system.

4. Explain what goes on behind the scenes when your computer runs a Python program.

Solution:
VE
If the program has not already been translated, Python’s compiler translates it to byte code. The Python
virtual machine then executes this code.
D?

3

Connected book
 image
Edition: 2023 ISBN: 9780357881019 Edition: Unknown

Document information

Uploaded on
November 15, 2025
Number of pages
167
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$20.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
MedConnoisseur
3.9
(202)
Sold
2786
Followers
1740
Items
2943
Last sold
5 hours ago


Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions