Last active
September 10, 2015 01:29
-
-
Save pzp1997/fe099133ccb956c4dffe to your computer and use it in GitHub Desktop.
Simplification of https://stackoverflow.com/questions/32491232/how-to-operate-on-elements-on-a-list/32491321#32491321
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
oceans = [[], [], [], [], []] | |
def RegTemp(regcode): | |
oceans[regcode-1].append((int(input("Digite la temperatura: ")), input("Digite la fecha: "))) | |
Mayor = lambda regcode: max(i[0] for i in oceans[regcode-1]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment