Source Code
n=int(input())
x=list(map(int,input().split()))
sum=0
while(len(x)==n):
   x[i]=x[i]%10
   sum=sum+x[i]
print(sum)  
Copy
The Tale of a Generous Prince dalia tamimi
Python 3
15 ms
2.7 MB
Runtime Error