Week 3: Sept 11 - 17¶
Quiz 2¶
Tuesday, September 12
What is covered:
for
loops andwhile
loops.break
andcontinue
The
range()
function.Logical operators:
not
,and
,or
.Defining functions.
Python¶
Documenting code: comments and docstrings
while
loopsFine-tuning loops:
break
andcontinue
Mathematics¶
Sieve of Eratosthenes