I have a weekday integer (0,1,2...) and I need to get the day name (\'Monday\', \'Tuesday\',...).
Is there a built in Python function or way of doing this?
H
You can use index number like this:
days=["sunday","monday"," Tuesday", "Wednesday" ,"Thursday", "Friday", "Saturday"] def date(i): return days[i] print (date(int(input("input index. "))))