# Build an RPG Character - Build an RPG Character - Step 7

**URL:** <https://forum.freecodecamp.org/t/build-an-rpg-character-build-an-rpg-character-step-7/779605>\
**Category:** Curriculum Help\
**Tags:** python\
**Created:** [February 21, 2026, 8:33am UTC](https://forum.freecodecamp.org/t/build-an-rpg-character-build-an-rpg-character-step-7/779605 "2026-02-21T08:33:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rishabha.rak](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/rishabha.rak/32/410598_2.png) [@rishabha.rak](https://forum.freecodecamp.org/u/rishabha.rak)\
**Post date:** [February 21, 2026, 8:33am UTC](https://forum.freecodecamp.org/t/build-an-rpg-character-build-an-rpg-character-step-7/779605/1 "2026-02-21T08:33:23Z")

</div>

getting stuck at step 7 and also if I remove indentation I go get stuck at 5

### Your code so far

```py
full_dot = '●'
empty_dot = '○'

def create_character(name,strength,intellegence,charisma):
    if not isinstance(name,str):
        return 'The character name should be a string'
    if len(name) == 0:
        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(strength.int) or not isinstance(intellegence.int) or not isinstance(charisma.int):
            return 'All stats should be integers'

# if not isinstance(strength.int or intellegence.int or charisma.int):
# if not isinstance(strength.int) or not isinstance(intellegence.int) or not isinstance(charisma.int):

```

### Your browser information:

User Agent is: `Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.3 Safari/605.1.15`

### Challenge Information:

Build an RPG Character - Build an RPG Character

> **[freeCodeCamp.org](https://www.freecodecamp.org/learn/python-v9/lab-rpg-character/build-an-rpg-character)**
>
> Learn to Code — For Free

---

<div class="post-metadata">

**Author:** ![rishabha.rak](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/rishabha.rak/32/410598_2.png) [@rishabha.rak](https://forum.freecodecamp.org/u/rishabha.rak)\
**Post date:** [February 21, 2026, 8:37am UTC](https://forum.freecodecamp.org/t/build-an-rpg-character-build-an-rpg-character-step-7/779605/3 "2026-02-21T08:37:41Z")

</div>

```python
def create_character(name,strength,intellegence,charisma):
    if not isinstance(name,str):
        return 'The character name should be a string'
    if len(name) == 0:
        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'
        stats = [strength,intellegence,charisma]
        if not isinstance(stats.int):   
# if not isinstance(strength.int) or not isinstance(intellegence.int) or not isinstance(charisma.int):
            return 'All stats should be integers'

```

even with this the same error

---

<div class="post-metadata">

**Author:** ![bappyasif](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/bappyasif/32/190571_2.png) [@bappyasif](https://forum.freecodecamp.org/u/bappyasif)\
**Post date:** [February 21, 2026, 9:13am UTC](https://forum.freecodecamp.org/t/build-an-rpg-character-build-an-rpg-character-step-7/779605/4 "2026-02-21T09:13:18Z")

</div>

hello and welcome to fcc forum 🙂

> [@rishabha.rak](#):
>
> `isinstance(stats.int)`

- "arent you supposed to use “comma” instead of “dot” within “isinstance” method?

> [@rishabha.rak](#):
>
> ```auto
> return 'The character name should not contain spaces'
> if not isinstance(strength.int) or not isinstance(intellegence.int) or not isinstance(charisma.int):
> return 'All stats should be integers'
> 
> ```

- this has also “indentation” problem

address those changes and it should be enough to pass corresponding usecases, happy coding 🙂

---

<div class="post-metadata">

**Author:** ![pkdvalis](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/pkdvalis/32/350571_2.png) [@pkdvalis](https://forum.freecodecamp.org/u/pkdvalis)\
**Post date:** [February 21, 2026, 1:13pm UTC](https://forum.freecodecamp.org/t/build-an-rpg-character-build-an-rpg-character-step-7/779605/5 "2026-02-21T13:13:41Z")

</div>

Try testing your function yourself by calling it with test input and printing the result.

```auto
print(create_character('ren', 'string', 2, 1))

```

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/freecodecamp/original/3X/e/1/e1c433102e34b46dfaa3e15d13ab9a514b127078.svg) [@system](https://forum.freecodecamp.org/u/system)\
**Post date:** [March 21, 2026, 1:14pm UTC](https://forum.freecodecamp.org/t/build-an-rpg-character-build-an-rpg-character-step-7/779605/6 "2026-03-21T13:14:32Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
