Regarding the code of the pattern
this code is not able to pass the test cases
hi @pmschhabra in the test cases there is an extra space in the beginning of the line (just one space, in the starting of the line) if you add that all the test cases will pass
the above code is right acc to me but still it is failing 2 test cases why so ?
@pmschhabra yes this code is 100% correct but the test cases have space in front of them so to pass test cases you have to print that space as well. I have reported this issue, for now make that change and it will pass.
If there is any confusion still,
your code will print
123****
but the test case wants
space123****
(space means ' '
character and not the actual word)
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.