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
* remove print * change main layout
hbui
2024-07-22
879c209d64f0c139706e5cb73b1c4c95ec532004
[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
)