KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Given a list of unsorted numbers, I want to find the smallest number larger than N (if any). In C#, I'd do something like this (checks omitted) : var x = list.Where(i => i > N).Min(); What's a short, READABLE way to do this in Python?
Tags (comma-separated)
Save Edits
Cancel