display the week day in words in python
Answers
Answered by
0
Answer:
Method 1: Do it Manually
# Define a list of weekday names.
days = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday']
# Index using weekday int value.
days[date. weekday()]
>>> Sunday.
Answered by
1
Answer:
Method 1: Do it Manually
• # Define a list of weekday names.
• days = = ['Monday', 'Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday']
• # Index using weekday int value.
days[date. weekday()]
• >>> Sunday.
i hope so this answer helps you
Similar questions