# Accept string input.
# Count vowel and consonant characters in the string.
# Display the string in reverse order.
inp_string = str(input())
VOWELS = 'aeiou'
CONSONANTS = 'bcdfghjklmnpqrstvwxyz'
number_of_vowels = 0
for i in range(5):
number_of_vowels += inp_string.count(VOWELS[i])
#print(number_of_vowels)
number_of_consonants = 0
for i in range(21):
number_of_consonants += inp_string.count(CONSONANTS[i])
#print(number_of_consonants)
print(inp_string[::-1])
Comments
Leave a comment