Can someone check what mistake I made?

full_dot = ‘●’
empty_dot = ‘○’

def create_character(name, strength, intelligence, charisma):
if not isinstance(name, str):
return ‘The character name should be a string.’
if name == “”:
return ‘The character should have a name.’
if len(name) > 10:
return ‘The character name is too long.’
if " " in name:
return ‘The character name should not contain spaces.’
if not isinstance(strength, int) or not isinstance(intelligence, int) or not isinstance(charisma, int):
return ‘All stats should be integers.’
if strength < 1 or intelligence < 1 or charisma < 1:
return ‘All stats should be no less than 1.’
if strength > 4 or intelligence > 4 or charisma > 4:
return ‘All stats should be no more than 4.’
if sum([strength, intelligence, charisma]) != 7:
return ‘The character should start with 7 points.’

stats_str = 'STR: ' + (full_dot * strength) + (empty_dot * (10 - strength))
stats_int = 'INT: ' + (full_dot * intelligence) + (empty_dot * (10 - intelligence))
stats_cha = 'CHA: ' + (full_dot * charisma) + (empty_dot * (10 - charisma))
return name + '\n' + stats_str + '\n' + stats_int + '\n' + stats_cha

character = create_character(‘ren’, 4, 2, 1)
print(character)

Welcome to the forum @Jadsonrlrs

If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Help button located on the challenge.

The Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Does the character name appear in the console?

Happy coding

For some reason, I can’t post!
And in my code says : You should have a function named create_character.

Make sure the body of the function is indented.

When you enter a code block into a forum post, please precede it with three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add the backticks.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').

Please post your code using the formatting instructions.