Здесь Вы можете найти ответы на многие вопросы или задать свой вопрос!
1 вариант:
nums = map(int, input().split())
result = 0
for num in nums:
if not num % 10: result += num
print(result)
2 вариант (в одну строку):
print(sum(filter(lambda x: True if not x % 10 else False, map(int, input().split()))))
3+3-3: 3=5
3-3+3+3=6
3: 3+3+3=7
3*3-3: 3=8
3*3*3: 3=9
3* 3+3: 3 = 10
в1+в2=5
(в1+в2+в3)/3=3
(5+в3)/3=3
5+в3=9
в3=4
Популярные вопросы