Ответ:
#1
import statistics
def ReadIntWhile(predicate):
x = int(input())
while predicate(x):
yield x
x = int(input())
a = list(filter( lambda p: p>=0, ReadIntWhile(lambda p: p != 0)))
print(f'Sum: {sum(a)}, average: {statistics.mean(a)}')
#2
n = int(input())
[print(f'{n} * {i} = {n*i}') for i in range(1,11)]
#3
print('---- Степени Двойки ---- \n\n')
[print(f'степень: {i} :: Значение степени: {2**i}') for i in range(11)]
Объяснение: