You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd not worked with sets before reading this book. I found this wording a little confusing:
(1) The update() method takes one argument, a set, and adds all its members to the original set. It’s as if you called the add() method with each member of the set.
...
(3) You can actually call the update() method with any number of arguments...
(4) The update() method can take objects of a number of different datatypes, including lists. When called with a list, the update() method adds all the items of the list to the original set.
It's not a huge deal, as immediately upon reading (3) and (4), you update your mental definition of update() from (1). That said, (1) is either incorrect or something else is meant, such as:
In this example, update() is passed one argument, a set, and adds...
Namely, (1) is describing the specific code in the example; it's just one way update() can be used, and happens to be passing one set. In contrast, it's not that the arguments to update() can only be of type set (not true) or that it can only take one argument (also not true).
Thanks for taking a look!
The text was updated successfully, but these errors were encountered:
I'd not worked with sets before reading this book. I found this wording a little confusing:
It's not a huge deal, as immediately upon reading (3) and (4), you update your mental definition of
update()
from (1). That said, (1) is either incorrect or something else is meant, such as:Namely, (1) is describing the specific code in the example; it's just one way
update()
can be used, and happens to be passing one set. In contrast, it's not that the arguments toupdate()
can only be of typeset
(not true) or that it can only take one argument (also not true).Thanks for taking a look!
The text was updated successfully, but these errors were encountered: