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