You are viewing a single comment's thread. Return to all comments →
N = int(input()) list = [] [(print(list) if c == 'print' else getattr(list, c.split(" ")[0])(*(int(x) for x in c.split(" ")[1:]))) for c in [input() for c in range(0,N)]]
Seems like cookies are disabled on this browser, please enable them to open this website
An unexpected error occurred. Please try reloading the page. If problem persists, please contact support@hackerrank.com
Lists
You are viewing a single comment's thread. Return to all comments →