Ad
  • Custom User Avatar

    This solution was written in Python 2 about 7 years ago, where the division operator gave an integer output with integer operands. If you run this in a Python 2 interpreter (as opposed to 3, which is the default) it'll work.