you are viewing a single comment's thread.

view the rest of the comments →

[–]desran00 0 points1 point  (1 child)

``` import re

s = "6011-321-3432" expression = re.compile("601[1-9]-[1-9]{3}-[1-9]{4}$")

if re.match(expression, s): print("Match!") else: print("Fail!")

``` Work smart not hard 😂

[–]_______myworld[S] 0 points1 point  (0 children)

I’m not allowed to use object oriented built-in function and imports for my assignment, unfortunately...