+ 1

Why is this code wrong?

Hi everyone. Can someone tell me why moderators have declined this submission? What is the output of this code? import re pattern = r".([aeiou](36)*(4)?(5)+)+(z)8

quot; str1 = "ba45a45z8" match = re.match(pattern,str1) if match: print(str(len(match.groups()))*2) (answer: 55) It seems to me everything is correct, it works in the interpreter with the correct output. Don't understand why It was declined

19th Aug 2017, 11:43 PM
Benji
2 Réponses
+ 8
Out of 24 quizzes only 2 of mine got accepted
20th Aug 2017, 12:00 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
0
but how they decide if accept or decline a submission? The correctness of the code is not enough apparently
20th Aug 2017, 8:25 AM
Benji