+ 1
What's wrong is this code? Why input function is not working for multiple inputs at the same time using .split() function?
4 Answers
+ 2
Because input returns string and if you wanna to enter 2 or more numbers in one string use map: a, b = map(int, input().split())
0
Thank you so much mate :)
0
But,what does "map" do actually..???