4.5 Exercises

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

README.md

4.5 Exercises

Read first in the book: 4.1 Introduction to Python Modules, 4.2 Modules, 4.3 The random module, 4.4 Glossary.

Exercise 1

Use a for statement to print 10 random numbers.

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

Exercise 2

Repeat the above exercise but this time print 10 random numbers between 25 and 35.

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

For teachers

4.5 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