Help me in solving LID2 problem

My issue

2nd to 5th

My code

# Update the code below to solve the problem

months = ["January", "February", "March", "April", "May", "June", "July"]
print(months[0:5])
print(months[1:6])

Learning course: Learn Python
Problem Link: CodeChef: Practical coding for everyone

@karthiga6265
U have to do it like this

# Solution as follows

months = ["January", "February", "March", "April", "May", "June", "July"]

print(months[0:6])

print(months[1:5])