Re: [Tutor] Fwd: Python bingo game.

2014-04-02 Thread zhijun long
>>> matrix = [ ... [1, 2, 5, 7, 9], ... [25, 67, 78, 23, 34], ... [33, 22, 66, 88, 98], ... [32, 31, 41, 56, 78], ... [21, 34, 58, 99, 76], ... ] >>> for item in [[row[i] for row in matrix] for i in range(5)]: ... print item ... [1, 25, 33, 32, 21

Re: [Tutor] Fwd: Python bingo game.

2014-03-31 Thread Danny Yoo
> > What difficulty are you having? I need to be straightforward so that > you understand, without ambiguity: we do not do your homework. We > will not violate the honor code of your institution. To do so is > anathema to why folks here volunteer to help beginners. > I do want to apologize if t

Re: [Tutor] Fwd: Python bingo game.

2014-03-31 Thread Danny Yoo
>> Can some one help me with displaying a matrix vertically. >> >> For example my output matrix is:- >> >> [1 2 5 7 9] >> [25 67 78 23 34] >> [33 22 66 88 98] >> [32 31 41 56 78] >> [21 34 58 99 76] >> >> And i want my matrix to look like this:- >> [1 25 33 32 21] >> [2 67 22 31 34] >> [5 78 66 41

[Tutor] Fwd: Python bingo game.

2014-03-31 Thread Hardik Gandhi
> Hello, > > Can some one help me with displaying a matrix vertically. > > For example my output matrix is:- > > [1 2 5 7 9] > [25 67 78 23 34] > [33 22 66 88 98] > [32 31 41 56 78] > [21 34 58 99 76] > > And i want my matrix to look like this:- > [1 25 33 32 21] > [2 67 22 31 34] > [5 78 66