+ 2
What is wrong with this code?
Hi, i got a problem with one a of the challenge of python course. My code always get the good output but it still say that there are bug and i have to try again. https://code.sololearn.com/c0ZyGNvId27N/?ref=app
2 Answers
+ 1
You should add a condition which checks if num equal to 8 chars like the following
if re.match(pattern,num) and len(num)==8:
#do smthg
0
I believe that if it's a Python Core course, you shouldn't be using modules and handling it with the core language, with algorithms and all...