thanks for your answer,
i now tried that:
i now tried that:
list1 = ['john', 'tony', 'luck] def replace_vowel(mlist): vowels = "aeiouy" new_word = [] for letter in mlist: if letter in vowels: new_word.append('-') else: new_word.append(letter) return new_word print replace_vowel(list1)but this just prints the list:
Output:['john', 'tony', 'luck]