Spocoman

01. No Vowels

Feb 10th, 2022 (edited)
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | None | 0 0
  1. text = list(input())
  2.  
  3. for i in ['a', 'e', 'i', 'o', 'u']:
  4.     text = [x for x in text if x != i]
  5.    
  6. print(''.join(text))
  7.  
  8.  
  9. ИЛИ:
  10.  
  11. text = input()
  12.  
  13. for i in ('a', 'e', 'i', 'o', 'u'):
  14.     text = text.replace(i, '')
  15.  
  16. print(text)
  17.  
Add Comment
Please, Sign In to add comment