Skip to content

Instantly share code, notes, and snippets.

@ricardosiri68
Created June 7, 2014 03:18
Show Gist options
  • Save ricardosiri68/b4c6132eaec33cd02d54 to your computer and use it in GitHub Desktop.
Save ricardosiri68/b4c6132eaec33cd02d54 to your computer and use it in GitHub Desktop.
tresMayores = []
numbers = [22, 21, 8, 5, 2, 1, 20]
tresMayores = []
for i in range(3):
mayor = max(numbers)
tresMayores += [mayor]
numbers.remove(mayor)
print(tresMayores)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment