File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -434,16 +434,15 @@ freeing us from having to manually examine every plot for features we've seen be
434434> ## Counting Vowels
435435>
436436> 1. Write a loop that counts the number of vowels in a character string.
437- >
438437> 2. Test it on a few individual words and full sentences.
439- >
440438> 3. Once you are done, compare your solution to your neighbor's.
441439> Did you make the same decisions about how to handle the letter 'y'
442440> (which some people think is a vowel, and some do not)?
441+ >
443442> > ## Solution
444443> > ~~~
445444> > vowels = 'aeiouAEIOU'
446- > > sentence = 'Mary had a little lamb."
445+ > > sentence = 'Mary had a little lamb.'
447446> > count = 0
448447> > for char in sentence:
449448> > if char in vowels:
You can’t perform that action at this time.
0 commit comments