Python Reading
Read
Strings
from the section entitled
Strings Revisited
through the section entitled
The Slice Operator
.
Class Activity
Locate the string
find
method in the
online documentation
.
Write a function that takes one string parameter. The function should count how many vowels occur in the string.
Explain what the following function does.
def chop (some_string): for i in range(len(some_string)): print(some_string[:i] + some_string[i+1:])
Active Learning Activity
Work
Exercise 8
.
Work Exercise 6.