Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def Anzahl_Vokale(Wort):
- Anzahl = 0
- for i in range(0, len(Wort)):
- if Wort[i] == 'a' or Wort[i] == 'e' or Wort[i] == 'i' or Wort[i] == 'o' or Wort[i] == 'u' or Wort[i] == 'ä' or Wort[i] == 'ö' or Wort[i] == 'ü':
- Anzahl = Anzahl + 1
- return Anzahl
- def Viele_Vokale(Liste, Zahl):
- Wörterliste = []
- for j in range(0, len(Liste)):
- if Anzahl_Vokale(Liste[j]) >= Zahl:
- Wörterliste.append(Liste[j])
- return Wörterliste
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement