not == in python code example Example: python not in arr = ['a','b','c','d','e','f'] if 'g' not in arr: print('g is not in the list')