Ad
  • Default User Avatar

    I had the same issue then I realized I needed to add logic to give the additional points only to those with 5 or more courses. Also just make sure to add 0 points to grades other than ABCD. I was adding undefined to an integer.

  • Custom User Avatar

    Where did you get that last 20?

    If there are 5 or more courses and all courses has a grade of B or above, additional 20 points are awarded.

  • Custom User Avatar

    Read the info on that link please, you need to write print(whatever_value_you_want_to_inspect). In this case, print(arr). And that works in both, you need to write it inside your function find_hack, not in another function that doesn't get called in the tests.

  • Custom User Avatar

    Print the input yourself to debug your code: https://docs.codewars.com/training/troubleshooting#print-input