Created
September 2, 2013 20:51
-
-
Save philipcristiano/6417173 to your computer and use it in GitHub Desktop.
Python parse first value
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 first_value(l): | |
for (value, time) in l: | |
if value is not None: | |
return value |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment