0
n = int(input())
arr = map(int, input().split())
print(arr) #error here

I have map function that splits out list items by comma.

I want to print out arr that contains list.

Then I have to find second highest number from the list.

Can you help?

Red
  • 26,798
  • 7
  • 36
  • 58
Usama Malick
  • 31
  • 1
  • 6

1 Answers1

1
n = int(input())
arr = list(map(int, input().split()))
print(arr) 

define arr as a list.

Elnaz
  • 21
  • 2