Build an RPG character - Build an RPG Character

Tell us what’s happening:

To be honest, the code works. the result on the terminal matches the expected result but still wont pass me

Your code so far

full_dot = '●'
empty_dot = '○'
def create_character(char_name,STR,INT,CHA):
    if not isinstance(char_name, str):
        return "The character name should be a string"
    length_char_name = len(char_name)
    if length_char_name >10:
        return "The character name is too long"
    space_in_char_name =" "
    if space_in_char_name in char_name:
        return"The character name should not contain spaces"
    if not isinstance(STR,int) or not isinstance (INT,int) or not isinstance (CHA,int):
        return "All stats should be integers"
    if STR<1 or CHA<1 or INT<1:
        return "All stats should be no less than 1"
    if STR>4 or CHA>4 or INT>4:
        return "All stats should be no more than 4"
    if (STR+CHA+INT) != 7:
        return "The character should start with 7 points"
    STR= STR*full_dot + ((10-STR)*empty_dot)
    INT= INT*full_dot+((10-INT)*empty_dot)
    CHA= CHA*full_dot+((10-CHA)*empty_dot)
    print (char_name)
    print(STR)
    print(INT)
    print(CHA)
(create_character("ren", 4, 2, 1))












    








Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36

Challenge Information:

Build an RPG character - Build an RPG Character

Welcome to the forum @victor_fire

9. create_character("ren", 4, 2, 1) should return ren\nSTR ●●●●○○○○○○\nINT ●●○○○○○○○○\nCHA ●○○○○○○○○○.

You need to return one string, not four.

Happy coding