+ 1

Could we put two "input" ?

Hi, i'm new on this app, and i'm trying to writing something with two 《Int input()》 but i can enter only one of them. (And sorry my english su€ks)

29th Jul 2025, 5:15 PM
Ambrine Yasmine R
Ambrine Yasmine R - avatar
1 Answer
+ 1
Let's say your Python program has two inputs, like this: a = int(input()) b = int(input()) Then Sololearn gives you a prompt before running the program so that you may type in all inputs. Type both values, pressing Enter between them. 25 <press enter> 31 <press Submit button>
29th Jul 2025, 5:26 PM
Brian
Brian - avatar