0
How do I get a program to ask for input more than once?
I'm trying to make a simple version of Mastermind: the program generates numbers randomly, then the player keeps guessing the numbers, responding to the program's output. I'm asking for input in a while loop. The problem is, the program asks for all of inputs at once, then outputs once. How do I get it to: ask for input, output, then immediately ask for more input? https://code.sololearn.com/cUcunOdrg0a5/#py
4 Answers
+ 2
It won't work at Sololearn, but it will work on a pc.
+ 1
Kindly run this program, it shows how to input to console in Sololearn. Hope it helps you...
https://code.sololearn.com/WhiNb9BkJUVC/?ref=app
0
Well technically these answers are correct but Scandi done if you are using python to display webpages then in that case you can have as many input fields as you want using something like django as a templating engine and flask as ur app routing :)