9.3 Code Practice

mail@pastecode.io avatar
unknown
plain_text
a month ago
298 B
119
Indexable
Never
import random

numbers = []

for r in range(4):
    numbers.append([])

for r in range(len(numbers)):
    for c in range(5):
        numbers[r].append(random.randint(-100, 100))

for r in range(len(numbers)):
    for c in range(len(numbers[0])):
        print(numbers[r][c], end=" ")
    print("")
Leave a Comment