Closed ji-0630 closed 1 year ago
def solution(my_string):
answer = ''
for i in my_string:
if i in ['a', 'e', 'i', 'o', 'u']:
continue
else:
answer += i
return answer
def solution(my_string):
return "".join([i for i in my_string if not(i in "aeiou")])
def solution(my_string):
vowels = ['a','e','i','o','u']
for vowel in vowels:
my_string = my_string.replace(vowel, '')
return my_string
문제 설명