+ 2

Can't i take inputs in loop in sololearn?

I m making a guessing game in python and i want to give five chances to guess the number . In program if person guess first number and run the code it's not asking for second input . Can i do something ?help please.

27th Jul 2019, 8:59 AM
ABHISHEK
ABHISHEK - avatar
6 Respostas
+ 3
Your best bet would be to supply as many inputs as necessary to simulate interactive input, and even that has a limit because the input dialog only allows 100 characters to be written. Unfortunately, this far, I haven't seen any workaround to actually imitate interactive input in Code Playground. But I could've missed it and be wrong : )
27th Jul 2019, 9:34 AM
Ipang
+ 2
Interactive inputs ? Not possible in SoloLearn . I know , it sucks.
29th Jul 2019, 8:56 AM
Ayush Gupta
Ayush Gupta - avatar
+ 1
Yes first your name And then 5 guesses i put example in end of code . But its no more interesting without interactive input
28th Jul 2019, 10:12 AM
ABHISHEK
ABHISHEK - avatar
0
You can take 5 inputs by line separating the single input statement you've got.
28th Jul 2019, 9:57 AM
Seb TheS
Seb TheS - avatar
28th Jul 2019, 10:05 AM
ABHISHEK
ABHISHEK - avatar
0
Well seems that you need to give 6 (line separated) inputs
28th Jul 2019, 10:07 AM
Seb TheS
Seb TheS - avatar