Added following condition and it worked

Continuing the discussion from Something went wrong with returncode 1:

For the assessement I added following code and assessment passed:
main function of SortList.py is as follow: (add bold lines)
def main():
n = int(input().strip())
if n < 1:
return
lst = [int(x) for x in input().strip().split()]
(code continue after above statement)

@aritra-crio-ta @sbanerjee_1998

Hey, sortList.py is updated by them. Didn’t you pull the stubs?

No, I just saw their reply and changes the code accordingly to slove this issue.

Oh okay.
Actually you are not supposed to change the code in SortList.py, otherwise others are gonna face the same issue everytime.
That’s why it’s better to pull stubs.
Anyways good work.:+1:

Closing this topic as it has been solved by you yourself. Great job, keep working hard. if its not resolved feel free to un-mark the accepted solution to re-open the topic.

Re-opening this topic as the previously accepted solution was just Un-marked.

Closing this topic as it has been solved by you yourself. Great job, keep working hard. if its not resolved feel free to un-mark the accepted solution to re-open the topic.