Python HackerRank 문제 10 - Lists


Python HackerRank 문제 10 - Lists

Python HackerRank 문제 10 - Lists Lists 풀이 if __name__ == '__main__': N = int(input()) li = list() for _ in range(N): command = input().split() try: getattr(li, command[0])(*(map(int, command[1:]))) except AttributeError: exec('{}({})'.format(command[0], 'li')) * 출처 Lists | HackerRank Perform different list operations. www.hackerrank.com Discussion on Lists Challenge Perform different list operations. www.hackerrank.com...


#HackerRank_Lists #Python #Python_HackerRank #Python_HackerRank_Lists #Python_Lists

원문링크 : Python HackerRank 문제 10 - Lists