From ede61cf8d0f80f43a36e4c5aa624883ab1383d52 Mon Sep 17 00:00:00 2001 From: Marco Torres Date: Thu, 3 Aug 2023 21:57:11 -0700 Subject: [PATCH] Reto #12 - Python --- .../python/marcoatrs.py" | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 "Retos/Reto #12 - VIERNES 13 [F\303\241cil]/python/marcoatrs.py" diff --git "a/Retos/Reto #12 - VIERNES 13 [F\303\241cil]/python/marcoatrs.py" "b/Retos/Reto #12 - VIERNES 13 [F\303\241cil]/python/marcoatrs.py" new file mode 100644 index 0000000000..d2e4da75a1 --- /dev/null +++ "b/Retos/Reto #12 - VIERNES 13 [F\303\241cil]/python/marcoatrs.py" @@ -0,0 +1,10 @@ +from datetime import datetime + + +def check_friday(month: int, year: int) -> bool: + day = datetime(year=year, month=month, day=13) + return day.weekday() == 4 + + +print(check_friday(1, 2023)) +print(check_friday(2, 2023))