Ответ:
n = [1,2,3]
k = [2,4,6,8]
x = []
for i in range(len(n)):
for j in range(len(k)):
x.append(2 * k[j] + n[i])
print(x)
На виході отримуємо: [5, 9, 13, 17, 6, 10, 14, 18, 7, 11, 15, 19]
Объяснение:
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Verified answer
Ответ:
n = [1,2,3]
k = [2,4,6,8]
x = []
for i in range(len(n)):
for j in range(len(k)):
x.append(2 * k[j] + n[i])
print(x)
На виході отримуємо: [5, 9, 13, 17, 6, 10, 14, 18, 7, 11, 15, 19]
Объяснение: