Advertisement
tourniquet

No wovels

Jul 12th, 2023
955
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.20 KB | None | 0 0
  1. wovels = ['a', 'e', 'i', 'o', 'u']
  2. word = 'somebody'
  3. def noWovels(str):
  4.   noWovels = []
  5.  
  6.   for x in str:
  7.     if x not in wovels:
  8.         noWovels.append(x)
  9.      
  10.   print(noWovels)
  11.    
  12. noWovels(word)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement