Hi, your solution only prints out the gradient for the first element in the tuple (i.e. a).
I’m aware of the second note, but I have to use a lot of older code for my research and it’s just becoming a force of habit these days. Thanks for the notice though!