What is the output?
print('a' in ['ab', 'a'])
- True
- False
- None
- Error
On a list,
Play Problem Solving ▸
in tests membership of whole elements — and 'a' is one of them.print('a' in ['ab', 'a'])
in tests membership of whole elements — and 'a' is one of them.