+ 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

29th Mar 2021, 9:53 PM
Quentin G
Quentin G - avatar
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
29th Mar 2021, 11:58 PM
iTech
iTech - avatar
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...
29th Mar 2021, 10:20 PM
philipep
philipep - avatar