My code worked fine in all my tests, but i didnt pass. Then I downloaded the test cases , and to my surprise all of my output matches the required output. Please look into it , as people are losing marks.
Discrepency in testing system
my code for your reference
Are you sure you are running it on Python 3 not Python 2.7?
yes , i tried it in both
Hi @Gopesh-Khandelwal-1098077763666198
Your output should exactly match the given output format.
for input:
3
your code’s output is:
1 2 3
1 2 x
1 x x x
but the expected output is:
1 2 3
1 2 *
1 * * *
So, if you look at it carefully, you were supposed to print *
but you are printing x
.
Please read the input and output format carefully.
Thanks for the help, it was a silly mistake.
Hi @Gopesh-Khandelwal-1098077763666198
If you don’t have any further query regarding this, can you please mark this doubt as resolved.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.