from random import randint random_numbers = [] for i in range(9): random_numbers.append(randint(0,9)) print(random_numbers)
Another way
from random import randint rn =[randint(0,9) for i in range(9)] print(rn)
I welcome all feedback.
The only dumb question, is one that doesn't get asked.
My Github
How to post code using bbtags
The only dumb question, is one that doesn't get asked.
My Github
How to post code using bbtags