Ответ:
import random
tables = []
# Создаем таблицы
for i in range(3):
temp = []
for j in range(3):
temp.append(random.randint(-100, 100))
tables.append(temp)
print(temp)
# Замена на слова
for table in tables:
for i in range(len(table)):
if table[i] < 0:
table[i] = "отрицательное"
elif table[i] > 0:
table[i] = "положотильное"
else:
table[i] = "ноль"
print(table)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
import random
tables = []
# Создаем таблицы
for i in range(3):
temp = []
for j in range(3):
temp.append(random.randint(-100, 100))
tables.append(temp)
print(temp)
# Замена на слова
for table in tables:
for i in range(len(table)):
if table[i] < 0:
table[i] = "отрицательное"
elif table[i] > 0:
table[i] = "положотильное"
else:
table[i] = "ноль"
for table in tables:
print(table)