. TypeError: 1 is neither a Symbol nor a string >>> r = Symbol('r') >>> isinstance(r, Symbol) True z#%s is neither a Symbol nor a stringN)