पायथन सदस्यता ऑपरेटर
पायथन सदस्यता ऑपरेटर
सदस्यता ऑपरेटरों का उपयोग यह जांचने के लिए किया जाता है कि क्या किसी वस्तु में अनुक्रम प्रस्तुत किया गया है:
Operator | Description | Example | Try it |
---|---|---|---|
in | Returns True if a sequence with the specified value is present in the object | x in y | |
not in | Returns True if a sequence with the specified value is not present in the object | x not in y |