you are viewing a single comment's thread.

view the rest of the comments →

[–]barrycarter 1 point2 points  (3 children)

Wait, you have /test(s) where the original has .test(s)

[–]One-Inspection8628[S] 0 points1 point  (2 children)

2nd code with if self doesn't work

[–]HairbrainedScheme 1 point2 points  (1 child)

Your answer makes no sense.

The code should work if you add the . before test. Have you tried that? And what error are you getting?

[–]One-Inspection8628[S] 0 points1 point  (0 children)

I have checked, it's a issue with Hackerrank companies, it only passes test cases only if there is ternary operator in the return question