Last active
November 25, 2020 15:35
sorted
This file contains hidden or 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
a=np.random.randint(10, size=10) #on simule un vecteur contenant 10 entiers allant de 0 à 9 | |
print(sorted(a)) #On classe dans l'ordre croissant | |
print(sorted(a, reverse=True)) #on classe dans l'ordre décroissant |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment