You are viewing a single comment's thread. Return to all comments →
if __name__ == '__main__': N = int(input()) C = [input().split() for _ in range(N)] L = [] for i in range(N): if C[i][0] == 'print': print(L) continue list_command = getattr(L, C[i][0]) list_command(*map(int, C[i][1:]))
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 →