+ 1
what does this code do?
list1.insert(1, num1 + num2) ? If num1 = 2,4,7,1,3,5 num2= 2,4,7,1,3 Wouldn’t it add num1 and num2 ? Please help Thank you ^-^
2 ответов
+ 2
Thank youuuuuu again
+ 1
list1 = [40, 41, 42]
num1 = 2, 4, 7, 1, 3, 5
num2 = 2, 4, 7, 1, 3
list1.insert(1, num1 + num2)
print(list1)
# [40, (2, 4, 7, 1, 3, 5, 2, 4, 7, 1, 3), 41, 42]