Same problem here:
https://forum.freecodecamp.org/t/learn-special-methods-by-building-a-vector-space-step-23/703068
My answer from that thread:
This is very close there is just a problem with the way you are placing the brackets.
I’m not sure exactly how to describe this:
Your generator cannot be inside the
getattr()
because the generator will generate all it’s values and then executegetattr()
once.
getattr()
needs to be within your generator expression so it executes for every value ofi
Basically you just need to adjust your brackets.