3 Respuestas
+ 5
use this a, b = input().split() instead.
+ 4
You can use input twice, but then you also have to insert the input into the prompt window, before you start the program, in two lines.
This is specific for Sololearn.
https://code.sololearn.com/WhiNb9BkJUVC/?ref=app
+ 1
Well here in sololearn if I need to get multiple inputs I try to get them on a single input like we do in terminal, then I use split() or regex.
Otherwise you can do as HonFu says. 😊
One example 👇
https://code.sololearn.com/cwDAM6yW3cxH/?ref=app