Ad
  • Default User Avatar

    I run reduce() over a range(1, n-1) and it returns:

    --> TypeError: reduce() of empty sequence with no initial value

    The script works without raising anything on my system, any idea why this is happening?