Two string methods find where a character is in a string: find and index.
(a) Both work the same if a character is found, but they behave differently if the character is not found. Describe the difference in how they behave when the character is not found.
(b) The
findandindexmethods are not limited to finding single characters. They can search for substrings. Givens = "Topkapi", what doess.find("kap")print? Describe the rule for whatfindprints.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.