Build an RPG Character - Build an RPG Character

Tell us what’s happening:

Test 11-12 doesn’t work( from line 21 ), been testing different methods, looking at other post and nada. Need help checking my code( be as blatant as possible)

Your code so far

full_dot = '●'
empty_dot = '○'
def create_character(name, strengh, 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(strengh,int) or not isinstance(intelligence, int) or not isinstance(charisma, int):
        return 'All stats should be integers'
    if strengh < 1 or intelligence < 1 or charisma < 1:
        return 'All stats should be no less than 1'
    if strengh > 4 or intelligence > 4 or charisma > 4:
        return 'All stats should be no more than 4'
    if strengh != 7 or intelligence != 7 or charisma != 7:
        return 'The character should start with 7 points'
        
        stats={'STR': strengh, 'INT': intelligence, 'CHA': charisma}
    character_string=name
    for key in ['STR', 'INT', 'CHA']:
        stat = stats[key]
        character_string += f'\n{key} {full_dot * stat + empty_dot * (10 - stat)}'
    return create_character
print(create_character("ren",4,2,1))
test_of_stats_str = 'ren\nSTR ●●●●○○○○○○\nINT ●●○○○○○○○○\nCHA ●○○○○○○○○○'
print(f"{test_of_stats_str}")

Your browser information:

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

Challenge Information:

Build an RPG Character - Build an RPG Character

Which are tests 11 and 12?

Which specific lines do you think should satisfy those tests?

test 11-12 starts at like line 21. Genuinely, mate, im not sure how im supposed to proceed.

I would answer both of the questions I asked. That would help me help you

don’t you see an error in the terminal? when would stats get a value?