+ 1
how did i get it wrong
Context: Syntax error at line 10 Here's the code: import re impstat = r"half_completed" match = re.match(impstat, "half_completed") msg = "ur completed" re_results = re.research(impstat, msg ) if match: print("Your status: {}".format(match.group()) else: print("Good luck next time") if re_results: print("congrats, your level is {}".format(match.end()) else: print("try harder") Additional references would be appreciated
2 ответов
+ 1
1. you are missing right ')' in your print ... format statements
2. there is no research method. i bet you mean 're.search'
+ 1
yeah I got it wrong at line 7