Question: Debugging Challenge You're trying to write code that will count the number of vowels in your name, storing that value in counter. To get started,
Debugging Challenge
You're trying to write code that will count the number of vowels in your name, storing that value in counter. To get started, you store your name in the
variable myname and write the code you see below. However, the code below is not quite working...work to debug the code below to accomplish the
task!
: # Debug the following code
myname 'Shannon'
vowels AEIUaeiou
counter
for char in myname:
if char vowels:
counter
# The counter should be the total number of vowels in myname, which is
print counter
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
