Basically, map() function are work on the collection like list and it change the data type of the all items in list.like:l=['1','2','3','4']l1=list(map(int,l))print(l1)output:[1,2,3,4]
like:
l=['1','2','3','4']
l1=list(map(int,l))
print(l1)
output:
[1,2,3,4]