File size: 324 Bytes
545f663
 
 
 
 
 
 
 
 
3753070
1
2
3
4
5
6
7
8
9
10
import random

def generate_phone_number():
  area_code = random.randint(100,999)
  exchange_code = random.randint(100,999)
  subscriber_number = random.randint(1000,9999)
  return f"({area_code}) {exchange_code}-{subscriber_number}"

phone_number = generate_phone_number()
print("You have reached", generate_phone_number())