# list tuple set dictionary, exception handling, file handling, OOPS, module n package
# list = []
# print(list)
# list = [1, 2, 3, 'sdf', 2.9, [1, 2, 3]]
# print(list)

# print(list[2])
# print(len(list))

my_list = list()

print(my_list)

my_list = list([1, 2, 3])

print(my_list)

x_list = [1, 2, 3, 'sdf', 2.9, [1, 2, 3]]

print(x_list[5][1])

print(x_list[5][-2])

my_list = ['p', 'r', 'o', 'g', 'r', 'a', 'm', 'e', 'r']

print(my_list[2: 5])


print(my_list[2:])

print(my_list[:5])

print(my_list[:])

print(my_list[1::2])

print(my_list[::-1])
