We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
I believe sets do maintain insertion order from Python 3.7 so using .pop() will remove the 9 which returns an error with .remove(9) straight afterwards. This challenge might be a bit outdated?
Set .discard(), .remove() & .pop()
You are viewing a single comment's thread. Return to all comments →
I believe sets do maintain insertion order from Python 3.7 so using
.pop()
will remove the9
which returns an error with.remove(9)
straight afterwards. This challenge might be a bit outdated?