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

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

| improve this answer | |
  • Thanks I should really start reading the questions properly – Nikilesh Reddy Oct 14 '14 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.

| improve this answer | |
  • thanks so much, this made my day :) – user7491 Jun 27 '15 at 4:19
  • thank you! mine too :) – José Ignacio Yánez Jun 8 '18 at 2:01

You must log in to answer this question.

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