Correction 1 2 3 4 5 6def selection_enclos(table_animaux, num_enclos): table = [] for animal in table_animaux: if animal['enclos'] == num_enclos: table.append(animal) return table