Generate a python program for validating a phone number.
Phone numbers should be in 10-digit format (no dashes, hyphens, etc.).
def valid_phone_number(phone):
    phone = str(phone)
    return len(phone) == 10 and phone.isdigit()