Created
February 29, 2024 10:54
-
-
Save TGITS/a5886c8837327ca539e7e5d12af3944c to your computer and use it in GitHub Desktop.
Exemple d'utilisation de la méthode reverse() des listes en Python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
numbers = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] | |
print('liste de nombres :', numbers) | |
numbers.reverse() | |
print('liste de nombres après reverse() :', numbers) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment