Tried to use math.prod to find a product of the list, but there is
AttributeError: module ‘math’ has no attribute ‘prod’
As far as I know it should be there starting from Python 3.8 - math — Mathematical functions — Python 3.8.12 documentation, here the version is older?