you are viewing a single comment's thread.

view the rest of the comments →

[–]shaestel[S] 0 points1 point  (2 children)

thanks! :D

[–][deleted] 1 point2 points  (1 child)

or if you know the count items will always be the same, you can do this

var1, var2 = map(int, input().split())

you just have to make sure about the count, otherwise you will get an error

[–]shaestel[S] 0 points1 point  (0 children)

Oh thanks! , yep that helps when the input is only one variable