Contact: aviboots(AT)netvision.net.il
39,939 questions
51,876 answers
573 users
def remove_vowels(s): vowels = ('a', 'e', 'i', 'o', 'u') for ch in s.lower(): if ch in vowels: s = s.replace(ch, "") return s s = "Python Programming" print(remove_vowels(s)) ''' run: Pythn Prgrmmng '''
import re def remove_vowels(s): return (re.sub("[aeiouAEIOU]", "", s)) s = "Python Java Rust Programming" print(remove_vowels(s)) ''' run: Pythn Jv Rst Prgrmmng '''