Скоригувати код
input_text=input().lower()
vowels = “”
consonants = “”
digits = “”
for char in sorted(input_text):
if char.isalpha():
if char in “aeiou”:
vowels += char
else:
consonants +=char
elif char.isdigit():
digits += char
print(vowels)
print(consonants)
print(digits)
Щоб привхідних даних
the essence of 2007
На виході отримували:
eo
сfhnst
027