773 B
773 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.21 | 1.21 | Membership tests | 1.5 Lists | 01_Introduction/05_Lists.md | https://github.com/dabeaz-course/practical-python | 93dca856b41c61a0a0f85ae334116e4c125629ea | false | false | false |
Exercise 1.21: Membership tests
Source: Practical Python Programming,
01_Introduction/05_Lists.md.
Exercise 1.21: Membership tests
Use the in or not in operator to check if 'AIG','AA', and 'CAT' are in the list of symbols.
>>> # Is 'AIG' IN the `symlist`?
True
>>> # Is 'AA' IN the `symlist`?
False
>>> # Is 'CAT' NOT IN the `symlist`?
True
>>>