Mar-22-2021, 06:39 PM
(This post was last modified: Mar-22-2021, 06:45 PM by Larz60+.
Edit Reason: added inline code tags
)
Sorry if this is stupid but I have created a list of days
I am trying to assign the weekdays to an empty list:
and the weekend days to an empty list:
I can't figure out how to assign the days properly, would I use a while loops or a for loop? Or would I need to loop them at all?
Sorry again if it's a stupid question.
days = ['Monday','Tuesday', 'Wednesday', 'Thursday','Friday', 'Saturday', 'Sunday']
I am trying to assign the weekdays to an empty list:
weekdays = []
and the weekend days to an empty list:
weekends = []
I can't figure out how to assign the days properly, would I use a while loops or a for loop? Or would I need to loop them at all?
Sorry again if it's a stupid question.