Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def Wörter_mit_a(Wort):
- Ergebnis=Wort[0] == "a"
- return Ergebnis
- def Wörter_mit_a(Liste):
- Ergebnis= []
- for Wort in Liste:
- if Wörter_mit_a(Wort):
- Ergebnis.append(Wort)
- return Ergebnis
- Text= "all cops are bastards! and when not they are no cops"
- Liste= Text.split()
- print(Wörter_mit_a(Liste))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement