[int(x) for x in input().split()] is the same as list(map(int, input().split()))
To make use of input_n you would have to modify def max_pairwise_product(numbers): to add another parameter, say n as def max_pairwise_product(numbers, n): so that in the function body you'd remove n = len(numbers).
So you would add another parameter, n and remove the line, n = len(numbers)
input_n
was not used.[int(x) for x in input().split()]
is the same aslist(map(int, input().split()))
To make use of
input_n
you would have to modifydef max_pairwise_product(numbers):
to add another parameter, sayn
asdef max_pairwise_product(numbers, n):
so that in the function body you'd removen = len(numbers)
.So you would add another parameter,
n
and remove the line,n = len(numbers)
Yes. Thank you for the suggestion.