Skip to content

Instantly share code, notes, and snippets.

@bjonnh
Last active April 2, 2019 18:12
Show Gist options
  • Save bjonnh/7b5c77f76320e0dd3bbba01c6084e768 to your computer and use it in GitHub Desktop.
Save bjonnh/7b5c77f76320e0dd3bbba01c6084e768 to your computer and use it in GitHub Desktop.
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