Week 3 Exercise 5 Assignment problem

I am not able understand why I am getting this error ?
In the week 3 programming assignment Exercise 5
Error is : - Cell #UNQ_C5. Can’t compile the student’s code. Error: IndentationError(‘unexpected indent’, (‘/tmp/student_solution_cells/cell_28.py’, 54, 6, ’ for j in range(n):\n’))

Can anybody helps me in the finding out my error…

OR provide me the correct answer.

{mentor edit: code removed}

Hi @sanket21 ,

Indentation is part of Python syntax. Looking at your code, the for loop code line has been indented. So just remove the indentation in the ‘for’ statement should help.

@sanket21, this thread is a duplicate. Please don’t post the same message twice.

Also, please do not ask others to send you the correct answers. That’s not allowed by the course Honor Code.

Posting your code is also not allowed. I have edited your post.