1.First, last and middle
BeginnerGiven days = ["Mon", "Tue", "Wed", "Thu", "Fri"], print the first day, the last day, and a list of the three middle days.
Show hint
Use index 0, index -1, and the slice [1:4] (or [1:-1]).
Show solution
days = ["Mon", "Tue", "Wed", "Thu", "Fri"]
print(days[0])
print(days[-1])
print(days[1:-1])Mon
Fri
['Tue', 'Wed', 'Thu']