Leap Year or Common Year

# Introduction In this project, you will learn how to determine whether a given year is a leap year or a common year. You will implement a Python function that takes a year as input and outputs whether the year is a leap year or a common year. ## 👀 Preview ```python Please enter a year: 2000 >>> The year is a leap year Please enter a year: 1900 >>> The year is a common year Please enter a year: 1582 >>> Please enter a year after 1582 ``` ## ðŸŽŊ Tasks In this project, you will learn: - How to implement a function to check if a year is a leap year or a common year - How to handle different types of input, including valid years, invalid years, and non-integer inputs - How to print the appropriate output based on the input year ## 🏆 Achievements After completing this project, you will be able to: - Understand the concept of leap years and common years - Write a Python function to determine the type of a given year - Implement error handling to handle various input scenarios - Apply your knowledge of conditional statements and data types in Python

|
60 : 00

Click the virtual machine below to start practicing