connaitre la place dans un tableau python code example
Example: 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"""
week = ['monday','tuesday','wednesday']
week.index('tuesday')
>>> 1
"""Warning => error if the element isn't in the list"""