dashboard
repositories
filestore
activity
search
login
python-kurs
/
example-projects-2024
example-projects-2024
summary
reflog
commits
tree
tickets
docs
forks
compare
blame
|
history
|
raw
demo show image
Hong-Phuc Bui
2024-09-27
8a9933e4decb3b6a57b47b6409474bd476920c24
[python-kurs/example-projects-2024.git]
/
python-grundlage
/
check-leapyear.py
1
2
3
4
5
6
7
#! /usr/bin/env python
year
=
input
(
"Geben Sie das Jahr ein! "
)
year
=
int
(
year
)
is_leap_year
=
((
year
%
4
==
0
)
and
(
year
%
100
!=
0
))
or
(
year
%
400
==
0
)
print
(
is_leap_year
)