Ive written a python program that used multiple instances of the syntax contains to look inside dictionaries and lists.
if not test_map[var].__contains__(string):
It seems I would be better off using:
if string not in test_map[var]:
Does anyone know what problems might arise, is the __contains__ method __contains__ ?
Thanks,
source share