Ms. Whitby's Classroom logo Ms. Whitby's Classroom

Week of Oct. 26

Python Playground

Week of Oct. 19

Python Problems

Resources

Online Python Compiler and Debugger

W3 Schools

The Python Tutorial


Week of Oct. 13

Usernames Form

  1. Usernames Form

  2. Code Combat - Sign in with Clever

  3. Jet’s Pizza


Week of Oct. 5

Problems

2. Arithmetic and divisibility

Operator Meaning Example
+ Add 4 + 3 is 7
** Raise to a power 2 ** 3 is 8
% Remainder after division 14 % 4 is 2
== Compare for equality 14 % 2 == 0 is True
Skill Why it matters
for loop Repeat a check for several numbers
range() Generate the numbers between two boundaries
Arithmetic operators Calculate expressions with a changing number
Modulo (%) Test whether division leaves a remainder
List and .append() Collect results that pass a test
return Give a completed list back to the caller