Question: Modify the program below to count and print the number of vowels in the user input. Make sure that the program includes letters that are
Modify the program below to count and print the number of vowels in the user input. Make sure that the program includes letters that are capitalized as well. For example 'I love Python' has 4 vowels (not counting y) def main(): user_input = input("Enter a string: ") vowels = "aeiou" print(user_input)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
