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 se all these solutions using command = input().split() and command[0] and command[1] to access the names and values, but where do we obtain them in the first place.
When I print s, the set only has values in them. Is it assumed that with each input() we write in our code, the user will provide an input like the example?
Isn't it very vaguely indicated in the task?
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Set .discard(), .remove() & .pop()
You are viewing a single comment's thread. Return to all comments →
I se all these solutions using command = input().split() and command[0] and command[1] to access the names and values, but where do we obtain them in the first place.
When I print s, the set only has values in them. Is it assumed that with each input() we write in our code, the user will provide an input like the example?
Isn't it very vaguely indicated in the task?