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”
print(create_character(‘ren,4.2.1’))
if len >= 10:
return “The character name is too long”
print(create_character(‘ren,4.2.1’))
if ’ ’ in name:
return “The character should not contain spaces”
print(create_character(‘ren,4.2.1’))
for stat in stats:
if not isinstance (stat,int):
return “All stats should be integers”
print(create_character(‘ren,4.2.1’))
if stat>4:
return “All stats should be no more than 4”
print(create_character(‘ren,4.2.1’))
if sum(stat) !=7:
return"The character should star with 7 points"
print(create_character(‘ren,4.2.1’))
No activity n the terminal . Pass as before.
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”
print(create_character(‘ren,4.2.1’))
if len >= 10:
return “The character name is too long”
print(create_character(‘ren,4.2.1’))
if ’ ’ in name:
return “The character should not contain spaces”
print(create_character(‘ren,4.2.1’))
for stat in stats:
if not isinstance (stat,int):
return “All stats should be integers”
print(create_character(‘ren,4.2.1’))
if stat>4:
return “All stats should be no more than 4”
print(create_character(‘ren,4.2.1’))
if sum(stat) !=7:
return"The character should star with 7 points"
print(create_character(‘ren,4.2.1’))
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”
print(create_character(‘ren,4.2.1’))
if len >= 10:
return “The character name is too long”
print(create_character(‘ren,4.2.1’))
if ’ ’ in name:
return “The character should not contain spaces”
print(create_character(‘ren,4.2.1’))
for stat in stats:
if not isinstance (stat,int):
return “All stats should be integers”
print(create_character(‘ren,4.2.1’))
if stat>4:
return “All stats should be no more than 4”
print(create_character(‘ren,4.2.1’))
if sum(stat) !=7:
return"The character should star with 7 points"
print(create_character(‘ren,4.2.1’))
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"
print(create_character('ren,4.2.1'))
if len >= 10:
return "The character name is too long"
print(create_character('ren,4.2.1'))
if ' ' in name:
return "The character should not contain spaces"
print(create_character('ren,4.2.1'))
for stat in stats:
if not isinstance (stat,int):
return "All stats should be integers"
print(create_character('ren,4.2.1'))
if stat>4:
return "All stats should be no more than 4"
print(create_character('ren,4.2.1'))
if sum(stat) !=7:
return"The character should star with 7 points"
print(create_character('ren,4.2.1'))
Same output as before. nothing in terminal tests don’t pass.