Week 2 assignment 4.2


I am getting a message saying “SyntaxError: invalid syntax” when writing b=0.0
Why isn’t this working?


Hello @G11. It’s a bit difficult to ascertain without a wider context. It seems that you are trying to assign b to zero as a floating point number (Python type ‘float’) and that should do the trick. BTW, b = 0. would work as well. My guess is that your syntax error is in the previous line of code. Have a look at that.

Yes it was on the previous line. Thanks!