I don't know if anyone else had this problem, but I believe my code is giving the correct output but check50 does not validate it. Below a picture of the error and a general output of my code: enter image description here

Any suggestions?

1 Answer 1


The problem is that the pset1 mario requirements weren't met. For the -1 and 24 inputs, the problem is that the program is supposed to prompt for reentry of the height until a valid input is received.

For the rest of the problems, well, it looks suspiciously that you've implemented the hacker version. Bonus points for doing it, but check50 doesn't check the hacker editions, only the regular editions of the psets. It should be a simple matter to remove the extraneous code. If you didn't do the hacker edition, then you need to reread the spec. It's supposed to be a half-pyramid, not a full pyramid.

If this answers your question, please click on the check mark to accept. Let's keep up on forum maintenance. ;-)

  • Found my mistake ;) Thanks for the help
    – user11062
    Mar 12, 2016 at 19:55

You must log in to answer this question.

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