KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a list like this: alkaline_earth_values = [['beryllium', 4], ['magnesium', 12], ['calcium', 20], ['strontium', 38], ['barium', 56], ['radium', 88]] If I simply use the max(list) method, it will return the answer 'strontium' , which would be correct if I was trying to find the max name , however I'm trying to return the element whose integer is highest.
Tags (comma-separated)
Save Edits
Cancel