You are viewing a single comment's thread. Return to all comments →
if __name__ == '__main__': N = int(input()) my_list = [] for _ in range(N): command, *values = input().split() params = list(map(int, values)) if command == "print": print(my_list) else: getattr(my_list, command)(*params)
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 →