t=int(input())
for _ in range(t):
n=int(input())
marks=[int(x) for x in input().split()]
min=min(marks)
max=max(marks)
print(min, max)
my input is
2
5
1 2 3 4 5
5
23 45 56 89 78
Ouput:
1 5
Traceback (most recent call last):
File "test.py", line 6, in <module>
min=min(marks)
TypeError: 'int' object is not callable
why I am getting is error when t is greater than 1. Please, Explain the working of the of the min() and max().
minandmax. Voting to close as a typo.