You are viewing a single comment's thread. Return to all comments →
for _ in range(int(input())): cmd, *arg = input().split() eval(f's.{cmd}(*{list(map(int, arg))})') print(sum(s))
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 →
for _ in range(int(input())): cmd, *arg = input().split() eval(f's.{cmd}(*{list(map(int, arg))})') print(sum(s))