# Build an RPG Character - Build an RPG Character

**URL:** <https://forum.freecodecamp.org/t/build-an-rpg-character-build-an-rpg-character/800976>\
**Category:** Curriculum Help\
**Tags:** python\
**Created:** [September 24, 2026, 4:30pm UTC](https://forum.freecodecamp.org/t/build-an-rpg-character-build-an-rpg-character/800976 "2026-09-24T16:30:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lukasmusic1991](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/lukasmusic1991/32/421968_2.png) [@lukasmusic1991](https://forum.freecodecamp.org/u/lukasmusic1991)\
**Post date:** [September 24, 2026, 4:30pm UTC](https://forum.freecodecamp.org/t/build-an-rpg-character-build-an-rpg-character/800976/1 "2026-09-24T16:30:49Z")

</div>

### Tell us what’s happening:

I cant get the last two test to work.  
I just used the stuff i learned so far. so no for, any, stat, etc.  
Any help would be great!  
Thanks!

### Your code so far

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

def create_character (name,STR,INT,CHA):

    if not isinstance(name,str):
        return 'The character name should be a string'

    if isinstance(name,str) and name == "":
        return 'The character should have a name'

    if len(name) > 10:
        return 'The character name is too long'
    
    if name.count(" ") > 0:
        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 INT < 1 or CHA < 1:
        return 'All stats should be no less than 1'

    if STR > 4 or INT > 4 or CHA > 4:
        return 'All stats should be no more than 4'

    if STR + INT + CHA != 7:
        return 'The character should start with 7 points'

    ed_STR = 10 - STR
    ed_INT = 10 - INT
    ed_CHA = 10 - CHA

    return name + 'STR' + ' ' + full_dot * STR + empty_dot * ed_STR + 'INT' + ' ' + full_dot * INT + empty_dot * ed_INT + 'CHA' + ' ' + full_dot * CHA + empty_dot * ed_CHA

character = create_character('ren', 4, 2, 1)
print(character)

```

### Your browser information:

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

### 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

GitHub Link: [freeCodeCamp/curriculum/challenges/english/blocks/lab-rpg-character/67d83df6f82eda3868dd2a84.md at main · freeCodeCamp/freeCodeCamp · GitHub](https://github.com/freeCodeCamp/freeCodeCamp/blob/main/curriculum/challenges/english/blocks/lab-rpg-character/67d83df6f82eda3868dd2a84.md)

---

<div class="post-metadata">

**Author:** ![dhess](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/dhess/32/406235_2.png) [@dhess](https://forum.freecodecamp.org/u/dhess)\
**Post date:** [September 24, 2026, 4:54pm UTC](https://forum.freecodecamp.org/t/build-an-rpg-character-build-an-rpg-character/800976/2 "2026-09-24T16:54:28Z")

</div>

Welcome to the forum @lukasmusic1991,

Good job, but does your output match exactly to the output in the instructions? What do you need to add to put each stat on its own line?

Happy coding

---

<div class="post-metadata">

**Author:** ![lukasmusic1991](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/lukasmusic1991/32/421968_2.png) [@lukasmusic1991](https://forum.freecodecamp.org/u/lukasmusic1991)\
**Post date:** [September 25, 2026, 12:00pm UTC](https://forum.freecodecamp.org/t/build-an-rpg-character-build-an-rpg-character/800976/3 "2026-09-25T12:00:44Z")

</div>

I knew it had to do with the \n !

Thanks for the hint!

---

<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:** [September 27, 2026, 12:01pm UTC](https://forum.freecodecamp.org/t/build-an-rpg-character-build-an-rpg-character/800976/4 "2026-09-27T12:01:43Z")

</div>

Closed on September 27, 2026, 12:01pm UTC

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