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

20th May 2018, 3:35 PM
Am Zarr
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)
20th May 2018, 4:14 PM
Just A Rather Ridiculously Long Username
+ 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 :)
20th May 2018, 3:54 PM
Just A Rather Ridiculously Long Username
20th May 2018, 4:20 PM
E_E Mopho
E_E Mopho - avatar
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
20th May 2018, 3:57 PM
Am Zarr
0
sorry to do with those rules
20th May 2018, 3:57 PM
Am Zarr
0
so many thanks Option 2 is good will going to test
20th May 2018, 4:19 PM
Am Zarr
0
Sololearn community is really fast :)
20th May 2018, 4:20 PM
Am Zarr
0
how do we close the thread ?
20th May 2018, 4:20 PM
Am Zarr