First fill the first row and first column of the matrix with seperate loops.
Then the rest of the elements of the matrix can be filled with nested loops.
regards,
Sarma.
On Tue, Sep 19, 2017 at 1:18 PM, Clara Chua wrote:
> Hi Python tutor, I require help for a script that asks user for number of
On 19/09/17 08:48, Clara Chua wrote:
> Hi Python tutor, I require help for a script that asks user for number of
> rows, r and number of columns c, and generates a r x c matrix with the
> following values:
What help do you need?
Which part of the above do you not know how to do?
Can you ask the u
Hi Python tutor, I require help for a script that asks user for number of
rows, r and number of columns c, and generates a r x c matrix with the
following values:
- The value of each element in the first row is the number of the column
- The value of each element in the first column is the number