So now in the other editor, I added one space before {name} in the return function (see new code of return function) and the 4 lines are aligned. But tests 11-12 still fail. Is it the fCC editor that is wrong, or me?
I cannot copy the outcome I get in the other editor. But it seems that there is a space before STR, INT, CHA, which is why I added a space before { name}\n.
the expected output is 'ren\nSTR ββββββββββ\nINT ββββββββββ\nCHA ββββββββββ', do you see spaces in those places?
Yes, I see. I added them in the code and the new editor gives that outcome correctly. But in fCC, tests 11-12 fail. And in the console, I see only WWWWWWWWW
Do you mean that the outcome should be on one line? Because in the instructions above, they mention explicitly that the outcome should be on 4 distinct lines
I mean that to pass the two lines printed need to be identical
the output is in 4 lines, you are just seeing \n in place of the text being visually on the next line because you are using repr because itβs easier to compare
you need to look at the spaces, make sure that the two lines are identical
I do not understand sorry. I have been wasting my time for one week on this assignment. It seems that I have the right code, and you continuously write in some crypto way which I do not understand. Can you please tell me what is wrong in my code??
repr is a troubleshooting tool so you can see spaces and newlines that are normally not visible. This is so you can clearly compare your output to whatβs shown in test 11 and spot the differences.
If you have a question you need to ask. Weβre not mind readers, we donβt know what you understand or not. Weβre clearly explaining to you what to do and are not being cryptic in any way.
You need to do the work though. If thereβs something you donβt understand you need to be able to ask an intelligent question about it. You can even do a web search and learn more about repr if thatβs what you didnβt understand.
We are here to help but learning is 100% up to you.