Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- # Universalnie funckii dlya vseh lab
- ## Razdelitel'
- def isdelimiter(c):
- if c.isspace() or c == ',':
- return True
- else:
- return False
- # Glasnaya
- def isvowel(c):
- vowels = set(['a', 'e', 'i', 'o', 'u', 'y'])
- if c.lower() in vowels:
- return True
- else:
- return False
- text = raw_input('Vvedite stroku: ')
- a = set()
- finded = False
- for c in list(text):
- if isdelimiter(c):
- a.clear()
- else:
- if isvowel(c):
- if c in a:
- finded = True
- break
- else:
- a.add(c)
- if finded:
- print 'NO'
- else:
- print 'YES'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement