0

It's the test result of my cs50p course of week 5(Back to the Bank). But when I check my code manually, it seems completely fine to me and I think that there is no problem. But the problem is in the second test which expects exit code 0, not 1.

I didn't know about exit code that much before but after this I had to research a little and I did so. But couldn't figure out what the heck was going into my code. If, you're experienced enough to encounter the problem please help me out. I need this.

Here goes the test results.

Here is the code of the two files one is the main file and another is the test file which is failed to pass check50.

2
  • please post your actual code and not an image of your code its very hard to read.
    – UpAndAdam
    Commented Dec 28, 2023 at 16:52
  • we need to see the very first error that it complain about
    – UpAndAdam
    Commented Dec 28, 2023 at 16:53

1 Answer 1

1

The spec says "restructure your code as below":

def main():
    ...


def value(greeting):
    ...


if __name__ == "__main__":
    main()

The posted code is not structured as specified.

1
  • I fixed that problem now but it still shows the same error. I'm trying to figure it out but it still not working. Commented Dec 28, 2023 at 14:51

You must log in to answer this question.

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