Build an RPG Character - Build an RPG Character

Tell us what’s happening:

I cannot pass the 10th test on Build an RPG character: 10. When create_character is called with a second, third or fourth argument that is not an integer it should return All stats should be integers. And when i return character stats i cannot see anything printed even though i’m returning the stats.

Your code so far

full_dot = '●'
empty_dot = '○'
def create_character(name, strength, intelligence, charisma):
    character_stats = [strength, intelligence, charisma]

    if not isinstance(name, str):
        return "The character name should be a string"  
    elif name == "":
        return "The character should have a name"
    elif len(name) > 10:
        return "The character name is too long"
    elif " " in name:
        return "The character name should not contain spaces"
    elif isinstance(name, str):
        return name
    elif not all(isinstance(stats, int) for character_stats in stats):
        return "All stats should be integers"
    elif all(isinstance(stats, int) for stats in character_stats):
        return character_stats
print(create_character("aye", 100, 100, 100))





Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64; rv:153.0) Gecko/20100101 Firefox/153.0

Challenge Information:

Build an RPG Character - Build an RPG Character

GitHub Link: freeCodeCamp/curriculum/challenges/english/blocks/lab-rpg-character/67d83df6f82eda3868dd2a84.md at main · freeCodeCamp/freeCodeCamp · GitHub

Welcome to the forum @Klein_0,

Would your code ever get past this line?

Happy coding

and after what dhess pointed out

what is stats?