permissions = 'rw' print 'w' in permissions print 'x' in permissions users = ['mlh', 'foo', 'bar'] print 'foo' in users