+ 1

What's wrong is this code? Why input function is not working for multiple inputs at the same time using .split() function?

https://code.sololearn.com/cWR4jnpw8Ftv/?ref=app

12th Oct 2019, 7:56 AM
Rushi
4 Réponses
+ 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())
12th Oct 2019, 8:07 AM
Backerbak
Backerbak - avatar
0
Thank you so much mate :)
12th Oct 2019, 8:10 AM
Rushi
0
But,what does "map" do actually..???
12th Oct 2019, 8:12 AM
Rushi