Python
Задача 1.
Дано список [5, 7, 8, 12, 4]. Обчислити суму елементів, значення яких більші 5.

L= [5, 7, 8, 12, 4]
S=0
for i in range(len(L))
if L[i]>5:
S=S+L[i]
print('S=',S)
Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


Copyright © 2024 SCHOLAR.TIPS - All rights reserved.