0

l1=[10,20,30] l2=[10,20,30,40,50] if l1 in l2: print("True") else: print("False")

Explain it and output

27th Jul 2022, 3:09 PM
Irshad Ahmad
Irshad Ahmad - avatar
1 Resposta
+ 3
Please do not put code in the title section. Please tag the relevant programming language instead of "i". You can test the code on sololearn playground (Code section). The code checks if l1 is an element of l2, which is false as l2 does not have any list as element.
27th Jul 2022, 3:28 PM
Lisa
Lisa - avatar