Ответ:
from random import randint
nums = [randint(-20, 20) for i in range(20)]
print(sum(filter(lambda x: x > 0, nums)))
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
from random import randint
nums = [randint(-20, 20) for i in range(20)]
print(sum(filter(lambda x: x > 0, nums)))