Jul-15-2018, 02:50 PM
Hello everyone!
Please advise why it does not works
But when i use Or statement:
Please advise why it does not works
test=['a', 'b', 'c', 'd', 'h'] if 'a' and 'b' in test: print ('everything is ok') else: print ('something went wrong')Result is "everything is ok"
But when i use Or statement:
test2=['a', 'b', 'c', 'd', 'h'] if 'i' or 'j' in test2: print ('everything is ok') else: print ('something went wrong')Result is "everything is ok" as well.