• i dont get what's wrong with my code

Question related to mission Compare Functions

 

def tipe(f,g): if(f==None): tipo="ferror" if(g==None): tipo="botherror" else: if(f==g): tipo="same" else: tipo="different" return tipo

def checkio(f,g): tipo=tipe(f,g) if(f != None): return f,tipo else: if(g != None): return g,tipo else: return None,'both_error'