Hi everyone,
I’d like to ask for a clarification regarding this project requirements, to understand if I’m on the right track.
I understand I’m supposed to return the result and not print it. Now, would it make sense to create each line separately, with the proper formatting, and then return them together, separated by a line break?
Something like the below, where first_line includes all the first operands, and second_line includes all operators and second operands (the example is random, in the actual version they would obviously have the right formatting).
first_line = "1 349 5001"
second_line = "+ 230 - 450 + 230"
return first_line + "\n" + second_line
From the test suite, I think this is what the project is asking, but can you confirm I’m on the right track?
Thanks.