no way to compare when less than two revisions
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| — | de:modul:m319:learningunits:lu05:loesungen:leapyear [2025/06/23 07:45] (aktuell) – ↷ Seite von modul:m319:learningunits:lu05:loesungen:leapyear nach de:modul:m319:learningunits:lu05:loesungen:leapyear verschoben msuter | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| + | ====== LU05.L06: Leap year ====== | ||
| + | |||
| + | <code python> | ||
| + | def main(): | ||
| + | year = int(input(' | ||
| + | if year % 400 == 0: | ||
| + | print(' | ||
| + | elif (year % 4 == 0) and (year % 100 != 0): | ||
| + | print(' | ||
| + | else: | ||
| + | print(' | ||
| + | |||
| + | |||
| + | if __name__ == ' | ||
| + | main() | ||
| + | </ | ||
| + | |||
| + | ---- | ||
| + | {{tag> | ||
| + | [[https:// | ||