+ 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
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
+ 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.
+ 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
+ 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. )
+ 3
Bob_Li, thank you.
I'll work on it.
+ 2
it could be easier if it showed choices. also, emoji flags are so small...
anyway, it's good.
+ 2
BroFar, Thank you so much.
+ 1
Bob_Li , thank you!
But otherwise, it's fine, right?
+ 1
You're welcome Ushasi Bhattacharya