+ 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

28th Jun 2018, 7:10 AM
Hồng Vĩ
Hồng Vĩ - avatar
2 Respostas
+ 1
1. you are missing right ')' in your print ... format statements 2. there is no research method. i bet you mean 're.search'
28th Jun 2018, 7:38 AM
strawdog
strawdog - avatar
+ 1
yeah I got it wrong at line 7
28th Jun 2018, 7:51 AM
Hồng Vĩ
Hồng Vĩ - avatar