Feedback for CS11A problem

Learning course: Python for problem solving - 1
Problem Link: CodeChef: Practical coding for everyone

Feedback

t = int(input())
for i in range(t):
A, B, C = map(int, input().split())
total_score = A + B + C
if total_score > 100 and A > 10 and B > 10 and C > 10:
print(‘PASS’)
else:
print(‘FAIL’)
this code gave me the correct output , but the console tells me that it is a wrong answer.

There are two things wrong with your code. First, the program puts two constraints: A + B + C \ge 100 and A, B, C \ge 10. In your code, you checked if A, B, C \gt 10. However the problem asks for greater than or equal to not greater than. The second error has to do with the quotations you used. is not a valid Python quote. You should use ' or " instead. Also, when you say “this code gave me the correct output”, did you run it in a non-CodeChef environment? When I run your code, it throws an error because of the quotes. Once I fix those, it shows wrong answer because of the first point I made. To fix the quotations check:

  1. If your keyboard has a different setting
  2. If your editor is behaving weird (this problem could come from programs not intended for coding)

Hopefully this helps!

When I said it gave me correct output, yes I meant it in a non-codechef environment , i.e, VS code, well yeah it may have been the >= thing that bugged me up. Well hope this appears properly here " ’ "