Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- year=int(input("Podaj rok"))
- month=input("Podaj miesiąc")
- if year%4==0 and year%100!=0 or year%400==0:
- print("Rok przestępny")
- else:
- print("365")
- # january = ["styczeń",1]
- #february = ["luty",2]
- #march = ["marzec",3]
- #april = ["kwiecień",4]
- #may = ["maj",5]
- #june = ["czerwiec",6]
- #july = ["lipec",7]
- #august = ["sierpień",8]
- #september = ["wrzesień",9]
- #october = ["październik",10]
- #november = ["listopad",11]
- #december = ["grudzień",12]
- #month_30 = [february,april,june,august,september,october,december]
- #month_31 = [january, march,may,july,september,november]
- month_30 = ["styczeń","marzec","maj","lipiec","wrzesień","listopad",1,3,5,7,9,11]
- month_31 = ["kwiecień","czerwiec","sierpień","pażdziernik","grudzień",4,6,8,10,12]
- if month=="luty" or month==2:
- print("28")
- elif month in month_30:
- print("30")
- elif month in month_31:
- else:
- print("nie istnieje")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement