Solution Exercice 32: programme Python qui déplace les éléments d'une liste

Exercice 32

Ecrire un algorithme Python qui déplace les 3 premiers élément d'une liste donnée et les place à la fin de la liste.
Exemple si L = [25 , 13 , 11 , 1 , 4 , 31 , 18 , 6, 12 , 1 , 7], l'algorithme renvoie : la liste:
[1 , 4 , 31 , 18 , 6, 12 , 1 , 7 , 25 , 13 , 11 ]

Solution




Younes Derfoufi
CRMEF OUJDA

Leave a Reply

Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.

Powered By
Best Wordpress Adblock Detecting Plugin | CHP Adblock