📅  最后修改于: 2022-03-11 14:46:23.950000             🧑  作者: Mango
#declaring list
myList=[12,'Hello','World!']
#for strings
print(myList[1][2]) # output --> l
#for numbers
temp=str(myList[0])
print(temp[1]) # output --> 2