Hmmm, this looks like a unique problem. ;-) check50 expects very exact output. That means that any missing or extra content, like whitespace, prompts, punctuation, characters, spaces, or anything else will almost always cause a fail.
In looking at the output, I'm thinking that the problem is the spaces that are printed after the last # and before the carriage return on each line before the last line of the pyramid. But, I could be wrong.
Try not printing the trailing spaces and see if that fixes it.
If this answers your question, please click on the check mark to accept. Let's keep up on forum maintenance. ;-)