Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren+ 2
How to calculate the number of vowels and consonants in a string ?
Your advice means a lot to me. Help ✍️
1 Antwort
+ 5
s = input()
c = 0
for ch in s.lower():
if ch in "aeiou": c +=1
print(c)