User Profile
Collapse
-
Being a new user of Python I never considered joining a for loop. Thanks for your help. -
Help with Printing Matrix Grid
I am wanting to print a matrix grid which is derived from a list of lists. The grid should look as follows:
Col 0 Col 1 Col 2
Row 0 1 2 3
Row 1 4 5 6
Row 2 7 8 9
However, I can't figure out how to print the lists without the [ ] around them. My code so far is as shown:
lol = [[1, 2, 3], [4,... -
Thank you!
So, 2 empty lists allow me to store the lists being generated by the first for loop.Leave a comment:
-
Help with Appending Number Matrix
I am wanting to produce a number matrix which will result in displaying the numbers in chronological order. For example, if a 3 x 3 matrix is desired, the output would result as such: [[1,2,3],[4,5,6],[7,8,9]]
The first part of my code can produce the initial list. However I am unsure how to append the lists that would continue this matrix.
n = int(input("Give me an integer: "))
list1 = []
i =...
No activity results to display
Show More
Leave a comment: