Advertisement
Guest User

Untitled

a guest
Mar 28th, 2017
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. def Anzahl_Vokale(Wort):
  2. Anzahl = 0
  3. for i in range(0, len(Wort)):
  4. 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] == 'ü':
  5. Anzahl = Anzahl + 1
  6. return Anzahl
  7.  
  8. def Viele_Vokale(Liste, Zahl):
  9. Wörterliste = []
  10. for j in range(0, len(Liste)):
  11. if Anzahl_Vokale(Liste[j]) >= Zahl:
  12. Wörterliste.append(Liste[j])
  13. return Wörterliste
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement