Demo entry 6761871

klo

   

Submitted by anonymous on Oct 06, 2018 at 13:13
Language: Python. Code size: 192 Bytes.

if "item1" in list:
    print ("item1 in list")
else:
    print("item1 is not in list")
    
if "item6" not in list:
    print("item6 is not in list")
else:
    print ("item1 in list")

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).