Challenge: Add Main Diagonal Elements in a Matrix
Test your knowledge by solving a challenge in this lesson.
We'll cover the following
Problem statement
Your task is to write a function add_diagonal
. Your function signature would be:
Get hands-on with 1400+ tech skills courses.