0
SOLVED Get player_satisfaction with predefined input
I would like to make a predefined answers and get them in the input I use input a variable I tried with array but we can type anything I tried with tuples but it doesn't work properly it's my firstime in the forum :) thanks to all maybe I searched badly sorry if you find them quickly without while and if condition if we can and with only fews lines at least one time
8 Réponses
+ 2
No problem, i made it a bit longer for readability.
However, you will have to use some sort of a loop if you want to ask the question repeatedly. Otherwise make it so that it asks only once.
I have made the same code smaller and one without a loop:
https://code.sololearn.com/cQrrFFk7YDFu/#py
(Not that lines 11 and 12 are not required if you want your code smaller)
+ 1
Welcome to the forum!
Here is a possible solution to your problem:
https://code.sololearn.com/cQrrFFk7YDFu/#py
Note that you might want to run it on your IDE as you can't take more than one input in the sololearn editor.
Let me know if i can clear anything else up :)
+ 1
0
oh but I want to have light code , just fews lines avoiding while function but yes I already tried with while and it's work better and also with if condition it's work better but I want it with just fews lines
0
sorry to do with those rules
0
so many thanks Option 2 is good will going to test
0
Sololearn community is really fast :)
0
how do we close the thread ?