Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def isInList (l, c) :
- for i in l :
- if i == c :
- return False
- return True
- l = []
- rez = []
- while True :
- s = input("Unesite String: ")
- if s == "" :
- break
- l.append(s)
- for i in l :
- temp = []
- for k in i :
- if k == 'a' :
- if isInList(temp, k) :
- temp.append(k)
- if k == 'e':
- if isInList(temp, k):
- temp.append(k)
- if k == 'i':
- if isInList(temp, k):
- temp.append(k)
- if k == 'o':
- if isInList(temp, k):
- temp.append(k)
- if k == 'u':
- if isInList(temp, k):
- temp.append(k)
- rez.append(temp)
- print(rez)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement