I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.
With “for test in section” You are taking each problem separately, this will not result in one line with all first arguments (32, 3801, etc.), a second line with the operators and second arguments.
It is correct to split the problems into seperate parts (2 operands and an operator), but then they need to be combined into lines as described above.
Does this help you a little bit? Judging by your code you are able to puzzle and don’t need the answer printed here yet