Blog

What is the output of the below code?

list = [5, 4, 2, 51, 56, 1, 3]

print(list[2:5])