list1 = [1, 'tom', True, 'jim', 'jim']
list2 = 'hello'
list3 = [1, 2, 3]

# print(list1.index('tom',1, 3))

# print(list1.count('tom'))
# print('h' in list2)
# print(list2.find('h'))
# print(list1)
# list1.append('222')
# print(list1)
# list1.extend(list3)
# print(list1)
# list1.insert(2,'hello')
# print(list1)
# del list1[2]
# print(list1)
#
# print(list1.pop(3))
# list1.remove('jim')
# list1.clear()
# list1.reverse()
# list3.sort(reverse=True)
# print(list3)
# i = 0
# while i < len(list1):
#     print(list1[i])
#     i += 1
# for i in list1:
#     print(i)
# name_list = [['小明', '小红', '小绿'], ['Tom', 'Jim', 'Lily'], ['张三', '李四', '王五']]
# print(name_list[2])
# print(name_list[2][1])

