Here is my below code that works fine. 'cluster_name' is a string variable that will hold some text.
if 'abc' not in cluster_name or 'xyz' not in cluster_name:
print "true"
else:
print "false"
i was looking to make the if condition even more simpler , something like this:
if 'abc' or 'xyz' not in cluster_name:
print "true"
else:
print "false"
is there a simpler way to do this?