# mutable, ordered, can hold different data type

list1 = []
list2 = [1, 6, 7, 4]
list3 = ['ajay', 7.8, 90, 'aman', 3 + 4j, 54, 67, 7]
list4 = ['aman', 'ajay', [3, 6, 7.9]]
list5 = ['ajay', 'rahul', 'nafish', 'zarine', 'sumit']

# print(list1, list2, list3, list4)

# print(list3[3])
# print(list3[-1])
# print(list3[1:3])
# print(list3[4:-3])
# print(list3[4:-5])

# print(list4[2][:3])


# print(list5.count('ajay'))
# list5.append('raman')
# print(list5)

# list5[1] = 'amit'
# print(list5)

# list5.insert(2, 'ajit')
# print(list5)
#
# list5.remove('ajay')
# print(list5)

# list5.pop()
# print(list5)

# print(list5.pop(3))
# print(list5)

# print(list5.index('ajay'))

# list5.sort()
# print(list5)
# list5.reverse()
# print(list5)

# print(len(list5))

# if 'ajay' in list5:
#     print('pass')

# for name in list5:
#     print(name)

# names = []
# for name in list5:
#     names.append(name)
#
# print(names)
# print(" ".join(names))

# print(tuple(list5))
# print(set(list5))
# list can not be converted to dict

# numbers = [6, 5, 3, 8, 4, 2, 5, 4, 11]
# total = 0
# for val in numbers:
#     total += val
# print(total)


# digits = [0, 1, 5]
#
# for i in digits:
#     print(i)
# else:
#     print("No items left.")
