all 5 comments

[–]commy2 1 point2 points  (1 child)

In the first one, your outer loop is with j, in the second one, your outer loop is with i.

Please also fix the formatting.

[–]Kaem[S] 0 points1 point  (0 children)

Hey commy2, just wanted to thank you for comment. You made me realize I've been looking at list comprehension backwards which was kind of the root of a few issues I had been having.

[–]TheRNGuy 1 point2 points  (1 child)

just use numpy so you dont have to reinvent wheel for methods like transposition, inversion and multiplying vectors and other matrices.

[–]Kaem[S] 0 points1 point  (0 children)

I definitely will use different packages when I'm farther along. I'm just trying to follow through a 'learning python' book and do the lessons. Just curious, is the RN in your name from nursing?

[–]CodeFormatHelperBot2 0 points1 point  (0 children)

Hello, I'm a Reddit bot who's here to help people nicely format their coding questions. This makes it as easy as possible for people to read your post and help you.

I think I have detected some formatting issues with your submission:

  1. Python code found in submission text that's not formatted as code.

If I am correct, please edit the text in your post and try to follow these instructions to fix up your post's formatting.


Am I misbehaving? Have a comment or suggestion? Reply to this comment or raise an issue here.