### Description:

 Replace all vowel to exclamation mark in the sentence. `aeiouAEIOU` is vowel.

### Examples

```
replace("Hi!") === "H!!"
replace("!Hi! Hi!") === "!H!! H!!"
replace("aeiou") === "!!!!!"
replace("ABCDE") === "!BCD!"
```

Difficulty: EASY
Tags: Fundamentals

Starter code:
def replace_exclamation(s):
	

Solutions:
def replace_exclamation(s):
	return ''.join(('!' if c in 'aeiouAEIOU' else c for c in s))


import re

def replace_exclamation(s):
	return re.sub('[aeiouAEIOU]', '!', s)


def replace_exclamation(s):
	return s.translate(str.maketrans('aeiouAEIOU', '!' * 10))


def replace_exclamation(s):
	vowels = ['a', 'e', 'i', 'o', 'u', 'A', 'E', 'I', 'O', 'U']
	for a in s:
		if a in vowels:
			s = s.replace(a, '!')
	print(s)
	return s


def replace_exclamation(s):
	return s.translate(s.maketrans('aeiouAEIOU', '!!!!!!!!!!'))


def replace_exclamation(s):
	for i in 'aeuioAEUIO':
		s = s.replace(i, '!')
	return s


import re

def replace_exclamation(s):
	return re.sub('[aeiou]', '!', s, flags=re.IGNORECASE)


import string

def replace_exclamation(s):
	return s.translate(str.maketrans('AaEeIiOoUu', '!!!!!!!!!!'))


replace_exclamation = lambda s: ''.join(('!' if c in 'aiueoAIUEO' else c for c in s))


def replace_exclamation(s):
	vowels = ['a', 'e', 'i', 'o', 'u', 'A', 'E', 'I', 'O', 'U']
	for i in range(len(vowels)):
		s = s.replace(vowels[i], '!')
	return s


def replace_exclamation(s):
	new_string = ''
	x = ('a', 'e', 'i', 'o', 'u', 'A', 'E', 'I', 'O', 'U')
	for i in s:
		if i in x:
			new_string += '!'
		else:
			new_string += str(i)
	return new_string


def replace_exclamation(s):
	return ''.join(['!' if x in 'aeiouAEIOU' else x for x in s])


def replace_exclamation(s):
	vowels = ('a', 'e', 'i', 'o', 'u')
	for c in s:
		if c.lower() in vowels:
			s = s.replace(c, '!')
	return s


def replace_exclamation(s):
	result = ''
	for char in s:
		if char in 'aeiouAEIOU':
			result += '!'
		else:
			result += char
	return result


def replace_exclamation(s):
	return ''.join(['!' if i in 'aeiouAEIOU' else i for i in s])


import re

def replace_exclamation(s):
	return re.sub('(?i)[aeiou]', '!', s)


def replace_exclamation(s):
	vowels = set('aeiouAEIOU')
	return ''.join(('!' if a in vowels else a for a in s))


import re

def replace_exclamation(s: str) -> str:
	return re.sub('[AEIOUaeiou]', '!', s)


import re
replace_exclamation = lambda s: re.sub('[aeiouAEIOU]', '!', s)


def replace_exclamation(s):
	v = 'aeiouAEIOU'
	t = v.maketrans(v, '!' * len(v))
	return s.translate(t)


def replace_exclamation(s):
	for ch in 'AaEeIiOoUu':
		s = s.replace(ch, '!')
	return s


import re

def replace_exclamation(s):
	return re.sub('[aioue]', '!', s, flags=re.I)


def replace_exclamation(s):
	return eval('s' + ''.join((".replace('%s','!')" % i for i in 'aeiouAEIOU')))


replace_exclamation = lambda s, r=__import__('re').sub: r('[aeiouAEIOU]', '!', s)


def replace_exclamation(s):
	vowels = 'aeiouAEIOU'
	output = ''
	for c in s:
		if c in vowels:
			output += '!'
		else:
			output += c
	return output


def replace_exclamation(s):
	for char in s:
		if char.lower() in 'aeiou':
			s = s.replace(char, '!')
	return s


VOWELS = 'aeiouAEIOU'

def replace_exclamation(s):
	return s.translate(str.maketrans(VOWELS, len(VOWELS) * '!'))


def replace_exclamation(s):
	for c in s:
		if c in 'aeiouAEIOU':
			s = s.replace(c, '!')
	return s


def replace_exclamation(s):
	return ''.join(['!' if _ in 'aeiouAEIOU' else _ for _ in s])


def replace_exclamation(s):
	vowel = 'aeiou'
	return ''.join(['!' if x.lower() in vowel else x for x in s])


def replace_exclamation(s):
	l = ['a', 'e', 'i', 'o', 'u', 'A', 'E', 'I', 'O', 'U']
	s1 = ''
	for i in s:
		if i in l:
			s1 = s1 + '!'
		else:
			s1 = s1 + i
	return s1


def replace_exclamation(s):
	vowels = 'aeiouAEIOU'
	new = ''
	for char in s:
		if char in vowels:
			new += '!'
		else:
			new += char
	return new


def replace_exclamation(string):
	result = ''
	for char in string:
		if char in 'aeiouAEIOU':
			result += '!'
		else:
			result += char
	return result


def replace_exclamation(s):
	return ''.join((el if el not in 'aeiouAEIOU' else '!' for el in s))


def replace_exclamation(s):
	liste = []
	for zeichen in s:
		liste.append(zeichen)
	for i in range(0, len(liste)):
		if liste[i] in ['a', 'e', 'i', 'u', 'o', 'A', 'E', 'I', 'U', 'O']:
			liste[i] = '!'
		else:
			continue
		string = ''.join([str(i) for i in liste])
	return string


def replace_exclamation(s):
	tab = s.maketrans('aeiouAIEOU', '!!!!!!!!!!', '')
	return s.translate(tab)


def replace_exclamation(s):
	vow = 'aeiou'
	ar = []
	for i in s:
		if i.lower() in vow:
			i = '!'
		ar.append(i)
	return ''.join(ar)


def replace_exclamation(s):
	b = s.replace('a', '!').replace('e', '!').replace('i', '!').replace('o', '!').replace('u', '!').replace('A', '!').replace('E', '!').replace('I', '!').replace('O', '!').replace('U', '!')
	return b


def replace_exclamation(s):
	word = ''
	for letter in s:
		if letter in 'aeiouAEIOU':
			word += '!'
		else:
			word += letter
	return word


import re
replace_exclamation = lambda string: re.sub('[aeiouAEIOU]', '!', string)


def replace_exclamation(s):
	v = list('aeiou')
	for i in s:
		if i.lower() in v:
			s = s.replace(i, '!')
	return s


def replace_exclamation(s):
	import re
	return re.sub('[A|E|I|O|U|a|e|i|o|u]', '!', s)


def replace_exclamation(s):
	vowels = ['a', 'e', 'i', 'o', 'u']
	x = []
	for i in s:
		if i.lower() in vowels:
			x.extend('!')
		else:
			x.extend(i)
	return ''.join(x)


def replace_exclamation(s):
	res = ''
	for i in s:
		if i in 'aeouiAEOIU':
			res += '!'
		else:
			res += i
	return res


def replace_exclamation(s):
	x = []
	for i in range(len(s)):
		if s[i] in ['a', 'e', 'i', 'o', 'u', 'A', 'E', 'I', 'O', 'U']:
			x.append('!')
		else:
			x.append(s[i])
	return ''.join(x)


def replace_exclamation(s):
	t = str.maketrans('aeiouAEIOU', '!!!!!!!!!!')
	return s.translate(t)


def replace_exclamation(s):
	vowels = ['a', 'e', 'i', 'o', 'u']
	result = ''
	for letter in s:
		if letter.lower() in vowels:
			result += '!'
		else:
			result += letter
	return result


def replace_exclamation(s):
	new = ''
	for i in s:
		if i.lower() not in 'aeiou':
			new += i
		else:
			new += '!'
	return new


vowels = 'aeiouAEIOU'

def replace_exclamation(s):
	return ''.join((c if c not in vowels else '!' for c in s))


def replace_exclamation(s):
	v = 'aeiou'
	for k in s:
		if k.lower() in v:
			s = s.replace(k, '!')
	return s


def replace_exclamation(s):
	vowels = 'AaEeIiOoUu'
	for x in s:
		if x in vowels:
			s = s.replace(x, '!')
	return s


def replace_exclamation(s):
	vstr = 'aeiouAEIOU'
	for x in s:
		if x in vstr:
			s = s.replace(x, '!')
	return s


def replace_exclamation(s):
	e = lambda _: '!' if _ in 'aeiouAEIOU' else _
	return ''.join([e(x) for x in s])


def replace_exclamation(s):
	ss = ''
	for el in s:
		if el not in 'euioaEUIOA':
			ss += el
		else:
			ss += '!'
	return ss


def replace_exclamation(s):
	return ''.join(('!' if s[n] in 'aeiouAEIOU' else s[n] for n in range(len(s))))


def replace_exclamation(s):
	ans = ''
	vowels = ('a', 'e', 'i', 'o', 'u', 'A', 'E', 'I', 'O', 'U')
	for char in s:
		if char in vowels:
			ans += '!'
		else:
			ans += char
	return ans


def replace_exclamation(s):
	new_s = ''
	for i in s:
		if i not in 'aeiouAEIOU':
			new_s = new_s + i
		if i in 'aeiouAEIOU':
			new_s = new_s + '!'
	return new_s


def replace_exclamation(s):
	return s.translate(s.maketrans('aeiuoAIUEO', '!' * 10))


def replace_exclamation(s):
	strx = ''
	for x in s:
		if x.lower() in 'aeiou':
			strx += '!'
		else:
			strx += x
	return strx


def replace_exclamation(s):
	vo = 'aeiouAEIOU'
	for a in vo:
		if a in s:
			s = s.replace(a, '!')
	return s


def replace_exclamation(x):
	a = ''
	for i in x:
		if i.lower() in 'aeiou':
			a += '!'
		else:
			a += i
	return a


def replace_exclamation(s):
	new = ''
	ls = ['a', 'e', 'i', 'o', 'u']
	for i in s:
		if i.lower() not in ls:
			new += i
		else:
			new += '!'
	return new


def replace_exclamation(s):
	st = ''
	for c in s:
		if c in ['a', 'e', 'i', 'o', 'u', 'A', 'E', 'I', 'O', 'U']:
			st += '!'
		else:
			st += c
	return st


def replace_exclamation(s):
	remove = ['a', 'e', 'i', 'o', 'u', 'A', 'E', 'I', 'O', 'U']
	for i in remove:
		s = s.replace(i, '!')
	return s


def replace_exclamation(s):
	res = ''
	for i in list(s):
		if i in 'aeiouAEIOU':
			res += '!'
		else:
			res += i
	return res


def replace_exclamation(s):
	j = 'aeiouAEIOU'
	lst = ['!' if x in j else x for x in s]
	return ''.join(lst)


def replace_exclamation(s):
	k = ['a', 'e', 'i', 'o', 'u', 'A', 'E', 'I', 'O', 'U']
	t = ''
	for a in s:
		if a in k:
			t += '!'
		else:
			t += a
	return t


def replace_exclamation(s):
	vow = 'aeiouAEIOU'
	a = ''
	for i in s:
		if i in vow:
			a += '!'
		else:
			a += i
	return a


def replace_exclamation(s):
	v = 'aeiouAEIOU'
	for i in s:
		if i in v:
			s = s.replace(str(i), '!')
	return s


def replace_exclamation(s):
	v = 'aeiouAEIOU'
	a = ''
	for each in s:
		if each in v:
			a += '!'
		else:
			a += each
	return a


def replace_exclamation(astr):
	vowels = 'aeiou'
	uppervowels = 'AEIOU'
	emptystring = ''
	for eachletter in astr:
		if eachletter in vowels or eachletter in uppervowels:
			emptystring = emptystring + '!'
		else:
			emptystring = emptystring + eachletter
	return emptystring


replace_exclamation = lambda x: x.replace('a', '!').replace('e', '!').replace('i', '!').replace('o', '!').replace('u', '!').replace('A', '!').replace('E', '!').replace('I', '!').replace('O', '!').replace('U', '!')


def replace_exclamation(s):
	s_list = list(s)
	for i in range(len(s_list)):
		if s_list[i].lower() == 'a' or s_list[i].lower() == 'e' or s_list[i].lower() == 'i' or (s_list[i].lower() == 'o') or (s_list[i].lower() == 'u'):
			s_list[i] = '!'
	string = ''
	for st in s_list:
		string += st
	return string


def replace_exclamation(s):
	ans = ''
	for i in range(0, len(s)):
		if s[i] in 'aeiouAEIOU':
			ans += '!'
		else:
			ans += s[i]
	return ans


def replace_exclamation(string):
	Glas = ['a', 'e', 'i', 'o', 'u', 'A', 'E', 'I', 'O', 'U']
	newString = ''
	for s in string:
		if s in Glas:
			newString = newString + '!'
		else:
			newString = newString + s
	return newString


def replace_exclamation(s):
	for i in 'AEUIOaeuio':
		s = s.replace(i, '!')
	return s


def replace_exclamation(s):
	return ''.join(({'a': '!', 'e': '!', 'i': '!', 'o': '!', 'u': '!', 'A': '!', 'E': '!', 'I': '!', 'O': '!', 'U': '!'}.get(e, e) for e in s))


def replace_exclamation(s):
	r = ['a', 'e', 'i', 'o', 'u', 'A', 'E', 'I', 'O', 'U']
	a = list(s)
	b = []
	for x in a:
		if x in r:
			b.append('!')
		else:
			b.append(x)
	return ''.join(b)


def replace_exclamation(s):
	s = list(s)
	for char in s:
		if char.lower() in 'aeiou':
			s[s.index(char)] = '!'
	return ''.join(s)


def replace_exclamation(s):
	new = ''
	for x in s:
		if x in 'aeiouAEIOU':
			new += '!'
		else:
			new += x
	return new


def replace_exclamation(s):
	newS = ''
	vowels = 'aeiouAEIOU'
	for letters in s:
		if letters in vowels:
			newS += '!'
		else:
			newS += letters
	return newS


def replace_exclamation(s):
	lijst = list(s)
	for i in range(0, len(lijst)):
		if lijst[i] in ['a', 'e', 'i', 'o', 'u', 'A', 'E', 'I', 'O', 'U']:
			lijst[i] = '!'
	return ''.join(lijst)


def replace_exclamation(s):
	vowel = 'aeiouAEIOU'
	res = ''
	for c in s:
		if c in vowel:
			res += '!'
		else:
			res += c
	return res


def replace_exclamation(s):
	return ''.join(('!' if let.lower() in ['a', 'e', 'i', 'o', 'u'] else let for let in s))