+ 2

Problem 1

you don't get back a set if you use add() method when creating a set object. noneValue = set().add(elem) The above statement doesn't return a reference to the set but 'None', because the statement returns the return type of add which is None. I couldn't get the explanation properly.

17th Mar 2021, 10:16 AM
Rajan K
Rajan K - avatar
1 Odpowiedź