[Community Puzzle] 7-segment display

Wrote solution in python3 and all test cases pass in CUSTOM mode (the one where i can see input and output in split) but on clicking SUBMIT or on PLAY ALL buttons it fails. I wondering what the case it could be. Thanks in advance. For instance:

Failure
Found: Nothing
Expected: Nothing

Found the reason while editing my post, it’s the difference in evaluating trailing β€˜\n’, removing it solved the problem.