0
serie = ["HeatEOP", "CoolantFGPM", "CoolingWF", "OilTA"]

for x in serie:
  "v"+x = []
  "ts"+x = []

What I would expect to do was create 8 arrays. vHeatEOP, tsHeatEOP, vCoolantFGPM, tsCoolantFGPM, vCoolingWF, tsCoolingWF, vOilTA, tsOilTA.

  • Your left hand side has an operator ("+") ..you are trying to assign something on the right side to an operator .. I doubt the code runs in the first place – Amit Feb 17 '21 at 13:46
  • How would that even work (LHS should logically be an identifier to store the variable not a value (string in your case))? You would be better off using dictionaries. – Abdul Aziz Barkat Feb 17 '21 at 13:46
  • What is it that you want to achieve? .. the title has very little information – Amit Feb 17 '21 at 13:48

0 Answers0