Problem 1 | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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
0 Resposta