مشغلي عضوية بايثون
مشغلي عضوية بايثون
تُستخدم عوامل تشغيل العضوية لاختبار ما إذا كان يتم تقديم تسلسل في كائن:
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 |