Comment obtenir tout l'index d'un char d'une chaîne en python

word = 'Hello'
to_find = 'l'

# in one line
print([i for i, x in enumerate(word) if x == to_find])
Darkstar