Hi I tried the most simplest for loop there is in python but I getting erro and how to fix it?
dataEnteringNode = IN
dataEnteringNode = IN ?
yes thanks it is working now
dataEnteringNode = IN declares all python inputs as
IN. If you look at your python node you have one input (
IN). In order to call that specific input you would need to either get
IN or set
IN to a new variable.
I don’t think you want
dataEnteringNode = IN. It would cause confusion if you had multiple inputs. The proper solution would be to use
a = a + IN[i]
sequence = IN [code...] a = a + sequence[i]