Exercise 2 - conv_single_step

when I use Z = Z + float(b) it works, However if I use Z=Z+b.astype(float) it says Error: Datatype mismatch
Error: Wrong shape
But notice the final value is still correct, I don’t understand

I just checked on python,
b.astype(float) doesn’t change the type of b, but rather changes the type the elements in b.
let say for instance you have b = array([0.5]), then b.astype(int) gives you b == array([0])

Thank you so much, so if I use astype func, it just changes the elements type inside the b, however the type of b itself still remains as before.