Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python3
- # -*- coding: utf-8 -*-
- #----------------------------------------------------------------------------
- # Created by : Alain Van Kerckhoven
- # Created Date: 3 avril 2017
- # Licence : GPL
- # Version : 1.0
- # ---------------------------------------------------------------------------
- """
- Programme testant si une année saisie est bissextile
- """
- # ---------------------------------------------------------------------------
- annee = input("Saisissez une année : ")
- annee = int(annee)
- if annee % 400 == 0 or (annee % 4 == 0 and annee % 100 != 0):
- print("L'année saisie est bissextile.")
- else:
- print("L'année saisie n'est pas bissextile.")
Advertisement
Add Comment
Please, Sign In to add comment