Python: how to find value in list smaller than target
For example I have a non-ordered list of values [10, 20, 50, 200, 100, 300, 250, 150] I have this code which returns the next greater value: <div class="codeblock"> <div class="spaced"> <div>Python Syntax (