Tell us what’s happening:
I am stuck on verifying the length of character name
I know that the len() function checks a variable string and outputs the number of characters in the variable as an integer so how is this not working?
Your code so far
full_dot = '●'
empty_dot = '○'
STR = input()
INT = input()
CHA = input()
character_name = input()
def create_character(character_name, STR, INT, CHA):
if type(character_name) == str:
return character_name
else:
return 'The character name should be a string'
if len(character_name) < 10:
return character_name
if len(character_name) >= 10:
return 'The character name is too long'
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36
Challenge Information:
Build an RPG character - Build an RPG Character