Programming, Python, Data Science, Dataset, Big Data.
variables, and then we use Python's string formatting to append them to a list to store our results: new_numbers. import re new_numbers = [] R = re.compile(r”d”) ❶ for number in phone_numbers: ❷ digits = R.findall(number) area_code = "".join(digits[-10:-7]) ❸ first_3 = "".join(digits[-7:-4]) last_4