Raymond Hettinger <raymond.hettin...@gmail.com> added the comment:
Two edits: - s.append(x) if side == s_side else t.append(y) + s.append(x) if side == s_side else t.append(x) - return prod(s, start=total) + for x in s: + total *= x + return total ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue41458> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com