text = input('Enter a line of text: ') vowels = set('aeiouAEIOU') ctext = ''.join(c for c in text if c not in vowels) print('Given text with all vowels removed:', ctext)