Ask coding questions

← Back to all posts
I'm a bit confused of how to do this problem in PYTHON. Can someone help me solve it?
TheHappyCow (1)

Given an integer n,please input a serpentine n*n matrix.The format of the matirx is given in sample output.

The first line is an integer n. 1<=n<=1000

n lines.Each line contains n positive integer.

Sample Input

Sample Output
1 2 6 7
3 5 8 13
4 9 12 14
10 11 15 16

OldWizard209 (1304)

Can you show us what you have tried>??? Posting assignments is breaking one of the rules of the ask section. Please elaborate.

TheHappyCow (1)

@OldWizard209 I just want a little help of how to get started.

OldWizard209 (1304)

do you know how the output is coming? @TheHappyCow

TheHappyCow (1)

@OldWizard209 No, not really. This is my first problem like this