Well, I would be fine with the portion of code below because it was working, however I would like you to figure what is more concise way compared to the code below:
def create_character (name, strength, intelligence, charisma):
if not isinstance (strength, int) or not isinstance (intelligence, int) or not isinstance (charisma, int):
return 'All stats should be integers'
elif strength < 1 or intelligence < 1 or charisma < 1:
return 'All stats should be no less than 1'
elif strength > 4 or intelligence > 4 or charisma > 4:
return 'All stats should be no more than 4'
elif strength + intelligence + charisma != 7:
return 'The character should start with 7 points'