5th Apr 2024, 10:48 PM
SQC
SQC - avatar
4 Réponses
0
What's the issue?
6th Apr 2024, 4:46 AM
Rrestoring faith
Rrestoring faith - avatar
0
SQC , random.shuffle(my_list) shuffles my_list "in place", meaning it mutates the original. There's no need to copy it to a new list afterward. In fact, there's no need to return it from your shuffle_reasons() function because the damage, or desired effect, has already been done.
6th Apr 2024, 5:23 AM
Rain
Rain - avatar
0
Hmm these are god points. Wish my ai was working
6th Apr 2024, 6:01 AM
SQC
SQC - avatar
0
I even took the courseeeeee
6th Apr 2024, 6:05 AM
SQC
SQC - avatar