Calculate Product For Given Numbers In Python