friday 13
This commit is contained in:
parent
e232c697d6
commit
f8602798de
|
@ -0,0 +1,11 @@
|
|||
from calendar import monthcalendar
|
||||
|
||||
month = int(input("Ingrese el mes (ingrese el número del mes): "))
|
||||
year = int(input("Ingrese el año: "))
|
||||
|
||||
date = monthcalendar(year, month)
|
||||
|
||||
if date[1][4] == 13 or date[2][4] == 13:
|
||||
print(True)
|
||||
else:
|
||||
print(False)
|
|
@ -0,0 +1,12 @@
|
|||
from calendar import monthcalendar
|
||||
|
||||
def friday13(year, month):
|
||||
|
||||
date = monthcalendar(year, month)
|
||||
|
||||
if date[1][4] == 13 or date[2][4] == 13:
|
||||
print(True)
|
||||
else:
|
||||
print(False)
|
||||
|
||||
return
|
Loading…
Reference in New Issue