def is_subsum10(s):
for i in range(len(s)):
sublist_sum = 0
j = i
while sublist_sum < 10 and j < len(s):
sublist_sum += s[j]
if sublist_sum == 10:
return True
j += 1
return False
# Пример использования функции
s = [1, 2, 3, 4, 5]
print(is_subsum10(s)) # Вывод: True
s = [1, 2, 3, 4, 6]
print(is_subsum10(s)) # Вывод: False