a, c = map(int, input().split()) # Will cover this syntax for accepting multiple inputs later
What is the use of map function in the above given code?
a, c = map(int, input().split()) # Will cover this syntax for accepting multiple inputs later
What is the use of map function in the above given code?
for the iterable of inputs and mostly in case of int.
Hello @issanpanda !
The map() function works as an iterator that returns a result after applying a function to every item of an iterable.