saving . . . saved containership has been deleted. containership has been hidden .
If a is a set, how do you check if variable bexists in a?
Here, the answer is,
 b in a
 But it has been mentioned that b is a variable and not an element of a. So, in that case the answer that has been provided in the tutorial is wrong. It should be,

Python-3.4.3 Sets-in-Python 10-11 min 20-30 sec 28-08-20, 5:44 p.m. Mitalidas


b in a checks if the value referenced by variable b is also available in the iterable a.

Please specify your question, so that we can help you.
08-09-20, 11:47 a.m. ankitrj.iitb

Log-in to answer to this question.