# user data entered as name and phone number user_data = "Elvis Presley 987-654-3210" phone_number = [ x for x in user_data if x.isdigit()] print(phone_number)