word = input('Enter a word: ') print(''.join(c if c.lower() not in 'aeiou' else '_' for c in word))