+ 2
How to get multiple inputs in python and javascript?
2 Answers
+ 2
Python:
a = input()
b = input()
Or:
inps = input().split(â â)
# str to list
a, b = tuple(inps)
# to tuple then unpacks it
... for two terms separated by space, like â1 2â.
Note that in SoloLearn you only input once, but thatâs just for SL. For too much input info, itâs better to read it from a txt file.
0
thnx