0

Would there be a better/faster way to make this?

https://code.sololearn.com/cCJQ4XzE09Tf/?ref=app

20th Mar 2022, 3:15 PM
Étienne Feuchter
Étienne Feuchter - avatar
5 Answers
+ 3
https://code.sololearn.com/ciTsAH5P1vxs/?ref=app
20th Mar 2022, 6:17 PM
Simon Sauter
Simon Sauter - avatar
+ 1
Take an empty list , and add your choice to list. Repeat this step until list length is less than 5. Note : don't add choice if choice already in list. How? if char1 not in list : list.add(char1) Then You can do the same within 5 lines.. hope it helps..
20th Mar 2022, 4:28 PM
Jayakrishna 🇼🇳
+ 1
Can be done with 2 different sets and use the sets operator least the way i would do it reading your Doc at the bottom
20th Mar 2022, 4:41 PM
Ion Kare
Ion Kare - avatar
+ 1
Simon Sauter Omg thank you so much <3
20th Mar 2022, 6:41 PM
Étienne Feuchter
Étienne Feuchter - avatar
+ 1
hmm didnt know they had a random mod like that im doing it the set way hehe it was already something built like that... but i will post anyways https://code.sololearn.com/cDbvsw9C9fWL
20th Mar 2022, 7:47 PM
Ion Kare
Ion Kare - avatar