really simple problem i think, but i cant think of any simple solution - maybe you guys have an idea how to do this:
I have a list of variable length with floats. eg: [10. 34.5 50. 72.] and an input value from 0. to 100.. now what i want is a simple function wich outputs 10. for the input range of 0. to 10.; 34.5 for the input range of 10.000001 to 34.5; 50 .... ect. you get the idea.
whats the easiest and most efficient way to create such a function with a variable number of points?