You are viewing a single comment's thread. Return to all comments →
if __name__ == '__main__': N = int(input()) l = [] for _ in range(N): raw = input().split() cmd = raw[0] args = raw[1:] if raw[0] != "print": eval(f"l.{cmd}({','.join(args)})") else: eval(f"{cmd}(l)")
Seems like cookies are disabled on this browser, please enable them to open this website
Lists
You are viewing a single comment's thread. Return to all comments →