User Profile

Collapse

Profile Sidebar

Collapse
okcomputer24
okcomputer24
Last Activity: Mar 18 '08, 04:07 PM
Joined: Mar 17 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • okcomputer24
    replied to Help with Printing Matrix Grid
    Being a new user of Python I never considered joining a for loop. Thanks for your help.
    See more | Go to post

    Leave a comment:


  • okcomputer24
    started a topic Help with Printing Matrix Grid

    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,...
    See more | Go to post

  • okcomputer24
    replied to Help with Appending Number Matrix
    Thank you!

    So, 2 empty lists allow me to store the lists being generated by the first for loop.
    See more | Go to post

    Leave a comment:


  • okcomputer24
    started a topic Help with Appending Number Matrix

    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 =...
    See more | Go to post
No activity results to display
Show More
Working...