So I tried everything I could and still I have no clue why does it return None Can someone help me?
class TextEditor:
commandCaller = ""
    def text_size(self, word=str, options='upper' or 'lower'):
    try:
        self.commandCaller = 'text_editor()'
        if options.lower() == 'upper':
            updated = '{}'.format(word).upper()
        elif options.lower() == 'lower':
            updated = '{}'.format(word).lower()
        else:
            pass
        print(updated)
    except UnboundLocalError:
        print("You typed something wrong or without a logic")
textEditor = FriendlyLanguage.TextEditor()
textEditor.text_size('hello')
And This is what it returns:
None
HELLO
 
    