Type Error: week 1 ass. 2 last exercise

[code removed - moderator]

Error:
84         if j % 2000 == 0:     85  ---> 86             print('Iteration: %d, Loss: %f' % (j, loss) + '\n') 
87
88             

The number of dinosaur names to print

TypeError: only size-1 arrays can be converted to Python scalars

Hi Joao.
loss should be a scalar float. What’s type(loss) in your case?

Hey,

Thank you so much for the quick reply. I think I have figure it out. Give me a couple of minutes and I will come back to you.