Skip to content

Instantly share code, notes, and snippets.

@Vatyx
Created April 22, 2016 21:05
Show Gist options
  • Save Vatyx/75a6a0d450b4b7d5884ac65b2aff17dc to your computer and use it in GitHub Desktop.
Save Vatyx/75a6a0d450b4b7d5884ac65b2aff17dc to your computer and use it in GitHub Desktop.
def find_it (numbers):
biggest, smaller = None, None
for x in numbers:
if x >= biggest:
biggest, smaller = x, biggest
elif biggest > x > smaller:
smaller = x
return smaller
print smaller
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment