Build an RPG Character - Build an RPG Character

Tell us what’s happening:

Hello, I’m trying to complete the task in which the stats (intelligence, strength, charisma) are not allowed to be less than 1. If it would be possible I’d love to know if I’m going into the right direction or a few little hints on what I need to change.
Thanks!

Your code so far

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  isinstance(strength,int) and  isinstance (intelligence,int) and  isinstance (charisma,int):
        return
    else:
        return "All stats should be integers"

    stats = (intelligence, strength, charisma) 

    if stats < 1:
        return "All stats should be no less than 1"








    

    

Your browser information:

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

Challenge Information:

Build an RPG Character - Build an RPG Character

Your function has an empty return that stops everything too early, so later checks (like stats less than 1, greater than 4, or sum not equal to 7) never run. Move those checks before any return happens, and check each stat one by one instead of as a group.