You are viewing a single comment's thread. Return to all comments →
import re N = int(input()) for _ in range(N): S = input() Num = re.split("[\s-]",S) print(f"CountryCode={Num[0]},LocalAreaCode={Num[1]},Number={Num[2]}")
Seems like cookies are disabled on this browser, please enable them to open this website
Split the Phone Numbers
You are viewing a single comment's thread. Return to all comments →