Jul-15-2020, 04:23 AM
(Jul-09-2020, 02:01 PM)Drone4four Wrote:test = (BY[0]*BY[1] + BO[0]*BO[1] + BG[0]*BG[1] + BB[0]*BB[1])
Note that the good thing about using
namedtuple
is that the fields in the object can be accessed by name, as well as index. I suggest using the former, because it helps make your code more readable.