I have made this code that should return whether a specific date is a weekend or a weekday but always returns weekday. What's wrong? I am new to python so any help would be appreciated :)
import datetime
def sunday_saturday_definer():
date_for_checking = datetime.datetime(day = 10, month= 12, year= 2019)
if date_for_checking.weekday == 5:
print("weekend")
elif date_for_checking.weekday == 6:
print("weekend")
else:
print("Weekday")
sunday_saturday_definer()