When I apply min() on map(), I get the below result for this particular code:
a = map(int, input().split())
print(min(a))
for i in a:
print(i)
For the input: 5 7 10 5 15
I get the result:
5
which is the minimum, but it doesn't execute the for loop.
But if I write:
a = map(int, input().split())
for i in a:
print(i)
Then for the same input, it executes the for loop, and I get the result:
5
7
10
5
15
Why using the min() function before the for loop, is stopping the for loop from executing?