à la recherche d'un élément dans un tableau multidimensionnel en python

j'ai ce tableau multidimensionnel en python.

hello = [(['b', 'y', 'e'], 3), (['h', 'e', 'l', 'l', 'o'], 5), (['w', 'o', 'r', 'l', 'd'], 5)]

et je voulais trouver l'index du numéro 3, j'ai essayé à l'aide de bonjour.index(3) mais ne fonctionne pas. Toutes les solutions?

InformationsquelleAutor alia | 2013-07-31