Checkpoint 9.9.2.
What is printed by the following statements?
s = "python rocks"
print(s.count("o") + s.count("p"))
-
0
-
There are definitely o and p characters.
-
2
-
There are 2 o characters but what about p?
-
3
-
Yes, add the number of o characters and the number of p characters.
