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?
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?
Copyright © 2021 Jogjafile Inc.
define arr as a list.