I am using 'prod' method from 'math' package to find the product of a list. Somehow I don't understand why the output is 1 for below operation although its an empty list.
from math import prod
a = [1,2,3]
print(prod(a[:0]))
1
print(bool(a[:0]))
False