---
# System prepended metadata

title: '???? - Python2020 Quiz3 Problem2'
tags: [Quiz]

---

# ???? - Python2020 Quiz3 Problem2 
###### tags: `Quiz`

[TOC]

## Description
輸入4個年份要你一次判斷是平年還是閏年

## Solution
```python
#!/usr/bin/env python3
def check_year(year):
	return bool(not year%400) or (bool(not year%4) and bool(year%100))

Years = []
for i in range(4):
	Years.append(int(input()))
for i in Years:
	print(f"{i} is a {'leaf' if check_year(i) else 'common'} year")
```