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

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

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

Output
n lines.Each line contains n positive integer.

Sample Input
4

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

You are viewing a single comment. View All
TheHappyCow (1)

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