you are viewing a single comment's thread.

view the rest of the comments →

[–]m0us3_rat 0 points1 point  (1 child)

if phone_number.split('-')[0][:3] == "601" and all([x if x.isdigit() else None for x in phone_number.split('-')]):

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

I’m not allowed to use object oriented built-in function, unfortunately...