Which is clearer?

Math:

        cog{i} = \over{writes_{1} * time_{1} + ... + writes_{i} * time_{i}}
                      {writes_{1} + ... + writes{i}}

Or code:

        expected = (sum([write * timeValue
                        for (write, timeValue) in zip(writes, timeValues)])
                  / sum(writes))

One Response to “Which is clearer?”

  1. admin says:

    BTW, this is why I love Python :-)

Leave a Reply