Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2020
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.74 KB | None | 0 0
  1. def isInList (l, c) :
  2.     for i in l :
  3.         if i == c :
  4.             return False
  5.     return True
  6.  
  7. l = []
  8. rez = []
  9. while True :
  10.     s = input("Unesite String: ")
  11.     if s == "" :
  12.         break
  13.     l.append(s)
  14.  
  15. for i in l :
  16.     temp = []
  17.     for k in i :
  18.         if k == 'a' :
  19.             if isInList(temp, k) :
  20.                 temp.append(k)
  21.         if k == 'e':
  22.             if isInList(temp, k):
  23.                 temp.append(k)
  24.         if k == 'i':
  25.             if isInList(temp, k):
  26.                 temp.append(k)
  27.         if k == 'o':
  28.             if isInList(temp, k):
  29.                 temp.append(k)
  30.         if k == 'u':
  31.             if isInList(temp, k):
  32.                 temp.append(k)
  33.     rez.append(temp)
  34.  
  35. print(rez)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement