Zeige QuelltextÄltere VersionenLinks hierherPDF exportierenCopy Moodle LinkNach oben Teilen per Teilen per... Twitter LinkedIn Facebook Pinterest Telegram WhatsApp Yammer Reddit TeamsLetzte ÄnderungenPer E-Mail sendenDruckenCopy Moodle LinkPermalink × LU05.L06: Leap year def main(): year = int(input('Give a year:\n')) if year % 400 == 0: print('The year is a leap year.') elif (year % 4 == 0) and (year % 100 != 0): print('The year is a leap year.') else: print('The year is not a leap year.') if __name__ == '__main__': main() M319-LU05 Kevin Maurizi, Marcel Suter modul/m319/learningunits/lu05/loesungen/leapyear.txt Zuletzt geändert: 2024/03/28 14:07von 127.0.0.1