Build an RPG Character - Build an RPG Character

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?

return f" {name}\n STR{(strength*full_dot)+((10-strength)*empty_dot)}\n INT{(intelligence*full_dot)+((10-intelligence)*empty_dot)}\n CHA{(charisma*full_dot)+((10-charisma)*empty_dot)}"

can you show us what you are seeing as output? are the two lines generated from the two print the same?

print(repr(create_character('ren', 4, 2, 1)))
print(repr('ren\nSTR ●●●●○○○○○○\nINT ●●○○○○○○○○\nCHA ●○○○○○○○○○'))

are you sure that adding the space there will make the line above match the one below?
the line below does not start with a space, does it?

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

can’t you add these two lines in your new editor so you can confront them?

Compare your output string to the one in Test 11. They are not the same.

They need to be exactly the same.

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??

I am using the last code you posted, and the two print statements
the output is

'ren\n STR●●●●○○○○○○\n INT●●○○○○○○○○\n CHA●○○○○○○○○○'
'ren\nSTR ●●●●○○○○○○\nINT ●●○○○○○○○○\nCHA ●○○○○○○○○○'

let me point out where they are not the same

'ren\n STR●●●●○○○○○○\n INT●●○○○○○○○○\n CHA●○○○○○○○○○'
'ren\nSTR ●●●●○○○○○○\nINT ●●○○○○○○○○\nCHA ●○○○○○○○○○'
      ||||            ||||            ||||

You are failing because you have spaces in the wrong places, you need to fix the string returned by your function so that it is like the second line

If this is not clear please let me know what you need to know or understand so I can explain it to you

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.

Read more about repr here https://www.geeksforgeeks.org/python/python-repr-function/

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.