0
words = "Fine and Cloudy"
vowels = 'aeiouAEIOU'
my_words = [words.index(c) for c in words if c not in vowels and words.count(c) == 1]
print(my_words)
Je suis juste ne comprends pas pourquoi la sortie est [0, 9, 10, 14]
et comment fonctionne-t-code simple? Quelqu'un peut-il expliquer en détail? S'il vous plaît! Merci d'avance.Un simple code de comptage que je ne comprends pas comment ça marche
Maintenant, je comprends tout à fait. Merci beaucoup! –