854 B
854 B
id, source_exercise_id, title, section, source_path, source_repo, source_commit, student_visible_solution, has_private_solution, skip
| id | source_exercise_id | title | section | source_path | source_repo | source_commit | student_visible_solution | has_private_solution | skip |
|---|---|---|---|---|---|---|---|---|---|
| practical-python-1.15 | 1.15 | Membership testing (substring testing) | 1.4 Strings | 01_Introduction/04_Strings.md | https://github.com/dabeaz-course/practical-python | 93dca856b41c61a0a0f85ae334116e4c125629ea | false | false | false |
Exercise 1.15: Membership testing (substring testing)
Source: Practical Python Programming,
01_Introduction/04_Strings.md.
Exercise 1.15: Membership testing (substring testing)
Experiment with the in operator to check for substrings. At the
interactive prompt, try these operations:
>>> 'IBM' in symbols
?
>>> 'AA' in symbols
True
>>> 'CAT' in symbols
?
>>>
Why did the check for 'AA' return True?