C2_W1_Assignment problem Exercise 4

Hi all
I have a problem with this exercise. Can you help me?
{moderator edit: code removed}

Screenshot 2023-12-15 133013

Hello @OlaAmmar
Welcome to our community. Due to our code of conduct and community guidelines, we don’t share answers related to assignments. If you are still encountering this error please send me a direct message or any other M4ML mentor.
Happy learning

@OlaAmmar,
As @Isaak_Kamau stated, please do not post your code on the forum. That’s not allowed by the Code of Conduct.

If a mentor needs to see your code, we will contact you with instructions.
Posting your error messages or asserts is fine.

I have removed the code from your post.

I will send you a personal message with some comments.

oh ok, thank you.

For those who find this thread later:

The issues were with regard to the use of variables prices_A and prices_B, pA and pB, and the importance of not modifying code that is outside the “START CODE HERE” areas.