akchonya

pr_r4(1)__nastya

Nov 18th, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. s = input('Слово: ')
  2. s1 = s.lower()
  3. str0 = ''
  4.  
  5. if 'a' in s1:
  6.     str0 += 'a '
  7.    
  8. if 'e' in s1:
  9.     str0 += 'e '
  10.    
  11. if 'i' in s1:
  12.     str0 += 'i '
  13.    
  14. if 'o' in s1:
  15.     str0 += 'o '
  16.  
  17. if 'u' in s1:
  18.     str0 += 'u '
  19.  
  20. print(str0)
Advertisement
Add Comment
Please, Sign In to add comment