Advertisement
Guest User

Untitled

a guest
Jun 12th, 2013
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.39 KB | None | 0 0
  1. vowels = "aeiouAEIOU"
  2.  
  3. def removeVowel():
  4.     non_vowel_list = []
  5.     user_input = raw_input("Unesi tekst:")
  6.  
  7.     if len(user_input) > 0:
  8.         for char in user_input:
  9.             if char not in vowels:
  10.                 non_vowel_list.append(char)
  11.         final_word = "".join(str(letter) for letter in non_vowel_list)
  12.         print final_word                
  13.         removeVowel()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement