There is a function that makes up the list of profiles:
def all_players_profile(): l = [] x = main.numb_of_players() n = 0 while n < x: n +=1 l.append(player_profile()) return l You need to write a function that, using the result of the function call all_players_profile() , will return a new list in which the profiles will be ordered randomly.
I absolutely do not understand how this can be done.