Skip to main content
Write days_in_month(year, month), which calls is_leap(), returns early with None for a month that doesn’t exist, and feeds a sentence about the month. Open Lab 26 in the IP Lab Portal

What you will practice

  • Call one function from another
  • Return early for invalid input
  • Return None when there is no answer

Before you start

Time

20 minutes

Where

IP Lab Portal

Module

Module 10: Defining functions

  • In the IP Lab Portal, open Lab 26 - Days in a month.
  • In class, this lab comes right after the Lesson 3 recap slide in Module 10 core material.