I can use dist.__ contains__ (value) to know whether a value is included or not in a List or Dist.But I need to return True if a value is not included in dist or list.
I tried If !dist._contains _(value) .Obviously, not worked.Please give me a solution.
I can use dist.__ contains__ (value) to know whether a value is included or
Share
Use
not ininstead ofinif you want to verify if a value is not in a list/dict.