[SciPy-user] finding values in a list?

Carlos "Guâno" Grohmann carlos.grohmann@gmail....
Sat Jul 11 16:01:31 CDT 2009

Sorry if this is too simple or even OT, but say I have a list like


and I want to get the values just below and above a given value.

So, if I enter 6.2, I get 6 and 7.

but how?



Carlos Henrique Grohmann - Geologist D.Sc.
a.k.a. Guano - Linux User #89721
ResearcherID: A-9030-2008


Can’t stop the signal.

More information about the SciPy-user mailing list