Array in Python
Can someone please help me with the below problem in python? I will upload my code shortly. Thanks...... Given an array A of N numbers, you have to write a program which prints the sum of the elements of array A with the corresponding elements of the reverse of array A. If array A has elements [1,2,3], then reverse of the array A will be [3,2,1] and the resultant array should be [4,4,4]. Input Format: The first line of the input contains a number N representing the number of elements in array A. The second line of the input contains N numbers separated by a space. (after the last elements, there is no space) Output Format: Print the resultant array elements separated by a space. (no space after the last element) Example: Input: 4 2 5 3 1 Output: 3883 Explanation: Here array A is [2,5,3,1] os reverse of this array is [1,3,5,2] and hence the resultant array is [3,8,8,3] code by Tortello https://code.sololearn.com/c77AD7CfGqdX/?ref=app