View Single Post
  #1  
Old 03-19-2011, 09:40 PM
Python Python is offline
Senior Member
 
Join Date: Jun 2009
Posts: 4,684
Default 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 (
__________________
Python
Domain Name Forum
Reply With Quote