13.7 Exercises

From Foundations of Python ProgrammingGNU FDL 1.3Original pagePython1 class period2 exercisesNot autograded

README.md

13.7 Exercises

Read first in the book: 13.5 Unpacking Tuples as Arguments to Function Calls, 13.6 Glossary.

Exercise 1

Fill in the left side of line 7 so that the following code runs without error

Open the 01 folder and edit main.py. This one is not graded, so check it yourself.

Exercise 2

Use a for loop to print out the last name, year of birth, and city for each of the people. (There are multiple ways you could do this. Try out some code and see what happens!)

Open the 02 folder and edit main.py. This one is not graded, so check it yourself.

For teachers

13.7 Exercises

Students read Foundations of Python Programming's “Exercises” in CS Room and work through its 2 Python coding exercises.

  • Time: 1 class period

Reading first

Exercises

FolderGradingTests
01Not graded; students check it themselves0
02Not graded; students check it themselves0