The Full Solution For Week 4 Assignment

[Post removed by staff, as the solution notebook was being shared]

Hi @Kedir_Nasir_Omer,

Please know, it is against the honour code of this community to share solutions publicly. Learners are encouraged to work on their assignments separately, but are freely allowed to have discussions (not involving sharing of solution).

Please don’t do that again. It ruins the experience for other learners.

Regards,
Mubsi

Ok! just Helping

Please use it as a reference for struggling learners, not just copy and paste it.

  1. shutdown the kernel and clear all output, then
  2. You may use:

(Solution code removed, as posting it publicly is against the honour code of this community)

to get the expected output of
[[2 0 1]
[1 0 5]
[9 9 9]]

Hi @Kedir_Nasir_Omer,

Again, you are sharing code which results in the expected output. Don’t get me wrong, I love your enthusiasm and appreciate taking time to contribute and thinking about helping others. Might I suggest you share hints on getting to that piece of code, rather than the actual code ?

Cheers,
Mubsi