[Solved] How should i go about making rows in a list?


If you can get it to print out one row of random numbers, you are almost there. The piece that you are missing is this: as you are running the loop that prints out the numbers, keep track of a counter (starting from 1). After each time a number is printed, check counter % 6. If the result is zero, print a newline. My Python is a bit rusty, and I don’t want to write all your code for you, but something like this pseudocode:

get the user input number

start i at 1, increment i up to 23
    print a random number
    if i % 6 == 0 print a newline

print the user input number

Based on your question, you’re probably already doing most of this, and just don’t know how to determine when to start a new line. Hope this helps.

solved How should i go about making rows in a list?