I'm trying to run simple code for finding second highest number in array 'arr' but second array iterator over 'arr' is not working.
if __name__ == '__main__':
n = int(input())
arr = map(int, input().split())
a1=-101
a2=-102
for i in arr:
if a1<i :a1=i
for j in arr:
print(j)
I expect arr value to be printed but getting ~ no response on stdout ~