Repository navigation
exercise5/answer.py: set operators |, &, - — do the module 05 TODOs require method forms too?
#32
Unanswered
dab00gieman
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
From
answers/exercise5/answer.py:The file demonstrates the operator forms (
union,intersection,differencevia symbols) and also shows dedup (fruitscontains "apple" twice;denimcontains 4 twice) andsorted()on a set. Do the Module 05 TODOs also expect the named-method forms (m.union(n)etc.), or are operators the required idiom for the answers?All reactions