Ad
  • Custom User Avatar

    You are probably using python 3. Codewars uses python 2.
    The significant difference in this case being that / is integer division in python2 unlike python3.
    Convert the values into floats before using division.

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution