Path 1: 34 calls (1.0)

2004 (12) 2001 (3) 0 (3) 1999 (2) 2017 (2) 2000 (1) 2002 (1) 2003 (1) 2005 (1) 1987 (1)

True (20) False (14)

1def isleap(year):
2    """Return True for leap years, False for non-leap years."""
3    return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)