def set_magic(self, magic):
        '''Set magic (prefix)'''
        if magic is None or isinstance(magic, str):
            self.magic = magic
        else:
            raise TypeError('Invalid value for magic')
def set_magic(self, magic):
        '''Set magic (prefix)'''
        if magic is None or isinstance(magic, str):
            self.magic = magic
        else:
            raise TypeError('Invalid value for magic')
def set_magic ( self , magic ) : if magic is None or isinstance ( magic , str ) : self . magic = magic else : raise TypeError ( 'Invalid value for magic' )
Set magic (prefix)
Set magic ( prefix )