is there an easy way to detect if the entire contents of one list are in another?
if I have a list like this: li = [1,2]
and I have another which will have random values, I want the program to do something only if every value of li is in the second list.
I need a way to program this:
x = random.randint(0,10)
y = random.randint(0,10)
li = [1,2]
li2 = [x,y]
if every value of li2 is in li:
do this