[Tutor] 2x2 matrix
ThreeBlindQuarks
threesomequarks at proton.me
Tue Dec 26 22:10:14 EST 2023
Alan,
I thought an earlier questions asked not about a "matrix" but a two by two list of lists.
The answers can be substantially similar, albeit you may have to use a module like numpy that supports a matrix.
The question keeps showing up in several places and, as you note, the answers do not appear to be evaluated so maybe the right answer is to not.
Or, throw a comprehension at them instead of an explicit loop.
But this keeps smelling like homework and not part of a larger purpose.
Sent with Proton Mail secure email.
On Tuesday, December 26th, 2023 at 8:36 PM, Alan Gauld via Tutor <tutor at python.org> wrote:
> On 26/12/2023 20:27, Ethan Rosenberg wrote:
>
> > I want to put i*j in the cells of a 2x2 matrix and have had no luck.
> > Help please.
>
>
> You've asked this a few times now and been given
> several solutions.
>
> What are you trying currently?
> What error messages are you getting?
> If no errors what output are you getting?
>
> I could just post a one line solution, but you'd
> learn nothing from that. We are here to help you
> learn not to provide you with solutions.
>
> Tell us what is puzzling you or you find difficult
> and we are happy to help.
>
> --
> Alan G
> Author of the Learn to Program web site
> http://www.alan-g.me.uk/
> http://www.amazon.com/author/alan_gauld
> Follow my photo-blog on Flickr at:
> http://www.flickr.com/photos/alangauldphotos
>
>
>
> _______________________________________________
> Tutor maillist - Tutor at python.org
> To unsubscribe or change subscription options:
> https://mail.python.org/mailman/listinfo/tutor
More information about the Tutor
mailing list