Created
April 22, 2016 21:05
-
-
Save Vatyx/75a6a0d450b4b7d5884ac65b2aff17dc 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
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