The second argument of the reduce function is the initial value, so for the sum it starts at 0. That’s why the ,0)
is there for.
0
solved For what 0 between comma and bracket is used for?
The second argument of the reduce function is the initial value, so for the sum it starts at 0. That’s why the ,0)
is there for.
0
solved For what 0 between comma and bracket is used for?