I’m sure I am missing something very simple, but I am having trouble processing a list using a Python script.
I have a list of values ranging from 1 to 1000, that I want to process to give me a list of new values.
I am calling the input list ‘x’ and the output list ‘y’. The way I want to process is that if x<75 I want y=5, if 75<=x<200 I want y=10 and so on. What I have shown below works correctly for a single input, but does not process a list.
There are probably easier ways to do what I want, but any suggestions?