Last active
April 2, 2019 18:12
-
-
Save bjonnh/7b5c77f76320e0dd3bbba01c6084e768 to your computer and use it in GitHub Desktop.
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
MAXIONS = 3 | |
intensite=[1000,20,30,100,1000] | |
masse=[1,2,3,4,5] | |
intensite,masse = zip(*sorted(zip(intensite,masse))[-MAXIONS:]) | |
print(intensite,masse) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment