On Mon, Apr 30, 2012 at 11:43 AM, viral shah <shahviral...@gmail.com> wrote: > I want to print below matrix. > > can any one suggest me the method for the same > > 1 2 3 > 4 5 6 > 7 8 9 >
In general, for homework questions, you should present your attempt at a solution, with specific questions where you are running into difficulty. Are you able to output anything using a python program? If not, you should take a look at one of the several excellent tutorials easily found by a web search. The official tutorial is at http://docs.python.org/py3k/tutorial/ and it might be enough for you to at least attempt a solution to your problem. Also, the python-tutor mailing list (http://mail.python.org/mailman/listinfo/tutor) is more suitable for beginning programmers. -- regards, kushal -- http://mail.python.org/mailman/listinfo/python-list