Ответ:
Задача3
a=int(input('a=?'))
d=int(input('d=?'))
N=int(input('N=?'))
L = [a+i*d for i in range (N)]
print(L)
Задача4
from random import randint
li = [randint(100,900) for i in range(50)]
k=0
for i in li:
if i%54==0:
k+=i
print(k)
Объяснение:
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
Задача3
a=int(input('a=?'))
d=int(input('d=?'))
N=int(input('N=?'))
L = [a+i*d for i in range (N)]
print(L)
Задача4
from random import randint
li = [randint(100,900) for i in range(50)]
k=0
for i in li:
if i%54==0:
k+=i
print(k)
Объяснение: