need to write program whether or not today is a day that begins with t | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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

5th Feb 2019, 10:33 AM
Ross Hunter
1 Answer
+ 5
from datetime import date weekdays = ('mon', 'tue', 'wed', 'thu', 'fri', 'sat', 'sun') print(weekdays[date.weekday(date.today())].startswith('t'))
5th Feb 2019, 1:09 PM
Anna
Anna - avatar