1

Screenshot

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 2

2

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:

Image of double pyramid for size 5

1
  • Thanks I should really start reading the questions properly Commented Oct 14, 2014 at 4:14
1

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.

2
  • thanks so much, this made my day :)
    – user7491
    Commented Jun 27, 2015 at 4:19
  • thank you! mine too :) Commented Jun 8, 2018 at 2:01

You must log in to answer this question.

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