TypeError: can only concatenate list (not "int") to list

I don’t know why the code is not working. I typed everything correctly.

{mentor edit: code removed}

Your code for f_wb is incorrect. You have [i] but you need x[i].

Please don’t post your code on the forum. That’s not allowed by the Community Standards.
If a mentor needs to see your code, we’ll ask you to send it via a private message.

1 Like

Also, look at where you’re dividing by ‘m’, and ponder whether that’s correct.

1 Like

Thank you for the information. I will make sure to send the code through a private message next time.

I will think about this, thank you again.

Only send your code to a mentor if we ask to see it.

The issue with the division by m is that you only want to do that once - not once for every example.