Mar-22-2021, 06:48 PM
(Mar-22-2021, 06:47 PM)Axel_Erfurt Wrote:days = ['Monday','Tuesday', 'Wednesday', 'Thursday','Friday', 'Saturday', 'Sunday'] weekdays = days[:5] weekends = days[5:] print(weekdays) print(weekends)
Output:['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday'] ['Saturday', 'Sunday']
Hey Axel,
Thanks so much but does this mean I'm assigning the days to empty lists or am I just printing the first five and then anything after the first five?
Thanks again