String matching: Difference between revisions
→{{header|Python}}
(Created page with '{{task}} Given two strings, demonstrate the following 3 types of matchings: 1. Determining if the first string starts with second string 2. Determining if the first string cont…') |
|||
Line 17:
"abcd".endswith("zn")#returns false
location="abab".find("ab")#returns 0
location="abab".find("ab",
</lang>
|