Skip to main content
Turn the leap year rule into an is_leap(year) function that returns True or False, then test it with several calls. Open Lab 25 in the IP Lab Portal

What you will practice

  • Define a function with one parameter
  • Return True or False
  • Test it with several calls

Before you start

Time

15 minutes

Where

IP Lab Portal

Module

Module 10: Defining functions

  • In the IP Lab Portal, open Lab 25 - Leap year function.
  • In class, this lab comes right after the Lesson 3 recap slide in Module 10 core material.