+ 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