Skip to content

Instantly share code, notes, and snippets.

@aadimator
Created April 1, 2017 05:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aadimator/e5b79858b3b95f2826e579b97b5aa0be to your computer and use it in GitHub Desktop.
Save aadimator/e5b79858b3b95f2826e579b97b5aa0be to your computer and use it in GitHub Desktop.
n = int(input().strip())
arr = [int(arr_temp) for arr_temp in input().strip().split(' ')]
print(sum(arr))
@msid0102
Copy link

msid0102 commented Apr 20, 2018

I getting followin error when run the above code...any idea why ?

C:\Users\d>new4.py

Traceback (most recent call last):
File "C:\Users\d\new4.py", line 1, in
n = int(input().strip())
File "", line 0

^

SyntaxError: unexpected EOF while parsing

C:\Users\d>

@SakshamChauhan23
Copy link

Can someone explain to me the second line of code I am pretty much new to this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment