def CorrectEmail(self, email):
print("<STR_LIT>"+email)<EOL>contents = email.split('<STR_LIT:@>')<EOL>if len(contents) == <NUM_LIT:2>:<EOL><INDENT>domain_data = contents[<NUM_LIT:1>].split('<STR_LIT:.>')<EOL>for vemail in self.valid:<EOL><INDENT>alters = perms(vemail.split('<STR_LIT:.>', <NUM_LIT:1>)[<NUM_LIT:0>])<EOL>if domain_data[<NUM_LIT:0>] in alters and qyn.query_yes_no("<STR_LIT>" + contents[<NUM_LIT:0>] + '<STR_LIT:@>' + vemail) is True:<EOL><INDENT>return contents[<NUM_LIT:0>] + '<STR_LIT:@>' + vemail<EOL><DEDENT><DEDENT>corrected = input('<STR_LIT>')<EOL>while self.CheckEmail(corrected) is False:<EOL><INDENT>corrected = input('<STR_LIT>')<EOL><DEDENT>return corrected<EOL><DEDENT>else:<EOL><INDENT>print('<STR_LIT>')<EOL>if len(contents) == <NUM_LIT:1>:<EOL><INDENT>for vemail in self.valid:<EOL><INDENT>if email[len(email) - len(vemail):] == vemail and qyn.query_yes_no("<STR_LIT>" + email[:len(email) - len(vemail)] + '<STR_LIT:@>' + vemail) is True:<EOL><INDENT>return email[:len(email) - len(vemail)] + '<STR_LIT:@>' + vemail<EOL><DEDENT><DEDENT><DEDENT>corrected = input('<STR_LIT>')<EOL>while self.CheckEmail(corrected) is False:<EOL><INDENT>corrected = input('<STR_LIT>')<EOL><DEDENT>return corrected<EOL><DEDENT>
Returns a Corrected email USER INPUT REQUIRED