I'm trying to modify the attributes of an object stored in an array.
Specifically, I have an array of qb "tuples" that store name, touchdowns, etc. (and the array definitely holds the values correctly and I normally refer to them as pp.passing_yds) and I want to for example multiply the amount of touchdowns this qb has by 10
Here is my attempt:
for pp in qb:
qb[pp.passing_tds] *= 10
However, I get an index out of bounds error here which makes it seem like I'm multiplying the index when I'm actually trying to multiply the attribute.
for pp in qbPastFive: qbPastFive[pp].passing_yds *= 10and that says list indicies must be integers and not my data type