position d'un element liste python code example
Example 1: list in python
myList = ["Test", 419]
myList.append(10)
myList.append("my code")
print(myList)
Example 2: indice d'un element dans une liste python
week = ['monday','tuesday','wednesday']
week.index('tuesday')
>>> 1
"""Warning => error if the element isn't in the list"""