list = [0,1,2,3,4,5,6,7,8,9]

print('Print complete list')
print(list)

print('Print list with start and end')
print(list[2:5])

print('Print list using -ve index')
print(list[-3:-1])

print('Print list using step to get even numbers')
print(list[::2])

print('Similarly print list using step to get odd numbers start index 1')
print(list[1::2])

print("Print in reverse order using -ve step")
#print(list[-1:-8:-1])
print(list[::-1])