Ответ:
--- 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)}')
Скриншот - Пример ввода/вывода
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
--- 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)}')
Скриншот - Пример ввода/вывода
ImportError: cannot import name 'prod' from 'math' (unknown location)