Week 2 · Session 3
Arithmetic, then a party trick built out of it.
+ - * — the ones you already know/ — division, and it always gives you a float: 10 / 5 is 2.0// — integer division, throws away the remainder: 2026 // 100 is 20% — modulo, keeps only the remainder: 11 % 7 is 4total % 7 always lands on one of them7 % 7 is 0. Wrapping all the way around returns you to the start"11-25-2026".split("-") gives you ["11", "25", "2026"]mm, dd, yyyy = date.split("-")Activity 2
Given any date, name its day of the week. Conway, 1973.
DayFunctions.py2026 into 20 and 26Two of the automated checks use a November date and a leap day, on purpose.
Released Today
Due Friday, September 11.
+ - * / %12 * 4, decide which operation was asked for, print the resultmodulo without the % operator, out of your other functionsuv run gatorgrade --config gatorgrade.yml on both