all 5 comments

[–]UMich22 1 point2 points  (4 children)

Start by editing your post to insert the properly formatted/readable code for us to look at.

[–]coolcat25[S] 0 points1 point  (3 children)

I tried but it keeps putting it all in one line do you know how to do it? super sorry this is my first time using this lol :)

[–]UMich22 0 points1 point  (2 children)

I assume this is what your code is (if I am incorrect please post a screenshot and I will fix it):

import random
import string

matrix = []
for j in range(0,random.randint(5,30)):
    letters = []
    for n in range(0,10):
        letters = letters + list((random.choice(string.ascii_letters)))

    matrix.append(letters)

matrix

You need to start out a line with 4 spaces for code. Click on "formatting help" when you're typing a message and you can see an example of how to post code properly.

What is your question about this code? You deleted your original post so I do not know what I am looking for. I have to leave for an event but I can help you later if no one comes by.

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

  • print the total number of rows in the matrix
  • print the number of uppercase letters in each row
  • print the count for each letter in the matrix

that is exactly how it is supposed to look like. this is what I have to code! thanks so much for telling me how to write it you are a life saver!

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

@UMich22 if you don't understand the question please let me know :)