# grocery = ["Harpic", "vim bar", "deodrant", "Bhindi",
#            "Lollypop", 56]
#  print(grocery[5])
# numbers = []
# numbers.remove()
# print(numbers.pop())
# n = []
# n = numbers.sort()
# print(n)
# numbers = []
# numbers.reverse()
# numbers.append(1)
# numbers.append(72)
# numbers.append(5)
# numbers.insert(2, 67)
# print(numbers)
# 3, 11, 9, 7, 2
# print(numbers)
# numbers[1] = 98
# print(numbers)
# Mutable - can change
# Immutable - cannot change
# tp = (1,)
# print(tp)
# a = 1
# b = 8
# a, b = b,a
# # temp = a
# # a = b
# # b = temp
# print(a, b)

# lst = []
#
# print("Enter the number of inputs that you want to add in the list: ")

# n = int(input())
#
# for i in range(n):
#     e = input()
#     lst.append(e)
#
# lst1 = set(lst)
# print(lst)
# print(lst1)
# print(type(lst1))

lst = ["hello", "kaisa hai be", "kaha mara rha tha", "itne din"]

str1 = "Dekho bhai aisa hai ki mai ye jaan bujh kr kr rha hu"
print(lst[-2::-2])

print(str1[:1:])
# explaination of lsit slicing
# [takes the index from where the list will start :
# takes the number of elements that will print from begining(starts from 1 ):
# takes the number of element you want to skip in between the list(by default 1)
# 2 will skip each element after one another]
