List membership demo : List In « List « Python






List membership demo

List membership demo
print 3 in [1, 2, 3]                    # membership (1 means true)


           
       

Related examples in the same category

1.Use in to check Membership Use in to check Membership
2.test for List membership with in test for List membership with in