0
need to write program whether or not today is a day that begins with t
beginner to this so any help would be great
1 Réponse
+ 5
from datetime import date
weekdays = ('mon', 'tue', 'wed', 'thu', 'fri', 'sat', 'sun')
print(weekdays[date.weekday(date.today())].startswith('t'))