Course5, week 1, programming assignment 2, part 1,clip

hey, in the “clip” function (second programming assignment of first week) there is a for loop that needs four parameters in one line of code; I set them to: gradient,
-maxValue, maxValue and gradient respectively, did I set anything wrong?? because I got error!

Hi reza1,

You want to clip the values in the gradients dict. How can you do this?

Good luck!