I am writing a script that, if an array's elements are the subset of the main array, then it print PASS, otherwise, it print FAIL instead.
What should I add to my if-else statement below to make it works?
a = [1,2,3,4,5]
b = [1,2]
c = [1,9]
# The Passing Scenario
if (i in a for i in b):
print "PASS"
else:
print "FAIL"
# The Failing Scenario
if (i in a for i in c):
print "PASS"
else:
print "FAIL"
d = [1,1,2], and if so, would you consider it a "subset" ofaor not?