Solution exercice 60: algorithme python qui détermine l'inverse d'une liste

Exercice 60

Ecrire un algorithme Python permettant d'inverser l'ordre des éléments d'une liste en utilisant la méthode reverse().
Exemple si L = ['Java' , 'Python' , 'PHP' , 'C++'] , l'algorithme renvoie la liste: ['C++' , 'PHP' , 'Python' , 'Java']

Solution





 

Younes Derfoufi
CRMEF OUJDA

1 thought on “Solution exercice 60: algorithme python qui détermine l'inverse d'une liste

Leave a Reply

Your email address will not be published. Required fields are marked *