I have tried to write some code about it. But I did not understand how can I apply the note in the question. My code:
row = input(\'Enter number of rows: \');