--- Python 3.8.3 ---
from math import prod
NumString = input()
Numbers = [float(i) for i in NumString.split(' ')]
print(f'Sum: {sum(Numbers)}\nProduct:{prod(Numbers)}')
Скриншот - Пример ввода/вывода
--- Python 3.8.3 ---
from math import prod
NumString = input()
Numbers = [float(i) for i in NumString.split(' ')]
print(f'Sum: {sum(Numbers)}\nProduct:{prod(Numbers)}')
Скриншот - Пример ввода/вывода