Help me in solving LID2 problem

My issue

what is the error in my code ?

months = [“January”, “February”, “March”, “April”, “May”, “June”, “July”]
print(list[1:6])

My code

# Update the code below to solve the problem

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

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

@lakshmi_52
U have to do it like this.


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

print(months[0:6])

print(months[1:5])