+ 1

Please confirm if this code is working.I'm a mobile-user & its not working for me but I can't find any bugs in the code either.

https://sololearn.com/compiler-playground/cZQa89jHH4JE/?ref=app

3rd Apr 2025, 2:34 AM
Ushasi Bhattacharya
9 ответов
+ 5
Ushasi Bhattacharya there is a way to do this but it is in BRYTHON not solely python as pointed out as backend languages you only get one chance to input everything not continuously as html / javascript so here is a workaround approach... https://sololearn.com/compiler-playground/We8iKrC75HYX/?ref=app
4th Apr 2025, 6:26 PM
BroFar
BroFar - avatar
M
+ 4
games that run in a while loop which continuously take user input cannot work properly in Sololearn. You don't have interactive terminal here and Sololearn inputs have to be submitted on a popup box all at once at the start of the program.
3rd Apr 2025, 3:06 AM
Bob_Li
Bob_Li - avatar
+ 3
i copy pasted your code in Pydroid 3. you're not counting the wrong answers, and you don't have a high score limit or a maximum wrong answers count, so your game never ends. maybe https://sololearn.com/compiler-playground/cSG39jKMa06K/?ref=app
3rd Apr 2025, 4:20 AM
Bob_Li
Bob_Li - avatar
+ 3
Bob_Li ,it's just a trivia quiz. Not a test or something where you can pass of fail, at least that was my intention. Well, the game does give your score after 20 questions and you can opt out by typing 'no', 'exit' or 'quit' when it asks you if you want to play again. Nevertheless, thank you the suggestions, it's always appreciated. (Just now I copy-pasted it in Pydroid 3 and well, I got the desired output. )
3rd Apr 2025, 4:46 AM
Ushasi Bhattacharya
+ 3
Bob_Li, thank you. I'll work on it.
3rd Apr 2025, 5:13 AM
Ushasi Bhattacharya
+ 2
it could be easier if it showed choices. also, emoji flags are so small... anyway, it's good.
3rd Apr 2025, 5:09 AM
Bob_Li
Bob_Li - avatar
+ 2
BroFar, Thank you so much.
4th Apr 2025, 11:06 PM
Ushasi Bhattacharya
+ 1
Bob_Li , thank you! But otherwise, it's fine, right?
3rd Apr 2025, 3:11 AM
Ushasi Bhattacharya
+ 1
You're welcome Ushasi Bhattacharya
4th Apr 2025, 11:11 PM
BroFar
BroFar - avatar
M