Tell us what’s happening:
When create_character is called with a first argument that is an empty string, it should return The character should have a name.
Your code so far
full_dot = '●'
empty_dot = '○'
def create_character(character_name, strength, intelligence, charisma):
if not isinstance(character_name, str):
return 'The character name should be a string'
if isinstance(character_name, str):
return 'The character name should not be a string'
if character_name == ' ':
return 'The character should have a name'
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 Edg/146.0.0.0
Challenge Information:
Build an RPG Character - Build an RPG Character