For an input text I have to count all the vowels, capitalize first letter in each word and output text in reverse(doesn't have to be capitalized), without using title or reverse functions. I was able to figure out the count for vowels, but struggling with other two.
def main():
vowelCount = 0
text = 'abc'
while(len(text) != 0):
text = input('Please etner some text or press <ENTER> to exit: ')
for char in text:
if char in 'aeiouAEIOU':
vowelCount += 1
print('Vowels:', vowelCount)
vowelCount = 0
for i in text:
i = text.find('') + 1
print(i)
print(text[0].upper() + text[1:])
main()