As you can see the code runs fine and gives the expected output of double pyramid for the numbers entered between 0 and 23 but check 50 says i have an error can someone enlighten me about what i have done wrong
2 Answers
Based off what I read in the pset description here, the highest columns of the pyramids should be only one #
wide instead of two. So for an input of 5
, the pyramid should be:
The problem is in spaces at the second half of pyramid. I have all strings of my output the same length. But check50 wants them to end right after the last # symbol.
-
thanks so much, this made my day :)– user7491Jun 27, 2015 at 4:19
-