You are viewing a single comment's thread. Return to all comments →
if __name__ == '__main__': l = [] for _ in range(int(input())): cmd,args = (lambda a: [a[0],a[1:]])(input().split()) if cmd=="print": print(l) else: exec(f"l.{cmd}({", ".join(args)})")
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 →