Build an RPG character - Build an RPG Character

Tell us what’s happening:

I am stuck on verifying the length of character name

I know that the len() function checks a variable string and outputs the number of characters in the variable as an integer so how is this not working?

Your code so far

full_dot = '●'
empty_dot = '○'

STR = input()
INT = input()
CHA = input()
character_name = input()

def create_character(character_name, STR, INT, CHA):
    if type(character_name) == str:
        return character_name
    else:
        return 'The character name should be a string'
    if len(character_name) < 10:
        return character_name
    if len(character_name) >= 10:
        return 'The character name is too long'
    

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36

Challenge Information:

Build an RPG character - Build an RPG Character

read again the user story about the name, what length does it ask for?

the other thing, what does return do?

Thank you! I see now that I was interchanging the print() function with return. The code below worked for test #3

full_dot = '●'
empty_dot = '○'

STR = input()
INT = input()
CHA = input()
character_name = input()

def create_character(character_name, STR, INT, CHA):
    if isinstance(character_name, str) :
        print(character_name)
    else:
        return 'The character name should be a string'
    if len(character_name) < 10:
        print(character_name)
    if len(character_name) >= 10:
        return 'The character name is too long'