Tech/Python1 Lists, indexing, slices, list methods, and/or tuples Problem1:Write a program that allows the user to enter two lists of integers, calculate the sum of thefirst and the last integers in each list, and print the larger sum. In the event of a tie, print ‘Same’. Whenthere is only one integer in the list, the sum is the integer itself.Example input and output:List 1: 1 2 3 4 5List 2: 5 6 7Output: 12List 1: 4 3 10 1List 2: 9Output: 9List 1: 4 3 2 1List.. 2025. 9. 4. 이전 1 다음