list1 = [1,2,3,45,6,7,8]
# 7 posn = -2
# 8 posn = -1
# then lists prints from start posn -2 till end
# print(list1[-2:])
# prints whole list
# print(list1[1:])
# print(list1[1:90])
# prints from start
# print(list1[:5])
# prints at gap of two
# print(list1[::2])
# reverse the list
# print(list1[::-1])

