0

Program works like a charm but still get these errors in the end when running the check. Could not figure out the issue. Why ? enter image description here

enter image description here

Thanks

3

Your own question hides the answer, carefully observe the difference:

"##\n"    " ##\n"

There is a space that should not be there, the hashtag must be perfectly aligned to the left. Your program is essentially on the right track, but it seems that you still have to adjust your indexes somewhat to achieve the aforementioned alignment

1
Pset1: Problem: expected “##\n”, not “ ##\n”

I think the solution output should be like this

#
##
###

If so then you should print the # before space Because check50 doesn't expect space # else # before space.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .