Answer:
Please check below for the code. I wrote this task using Python programming language.
Explanation:
phonebook = {}
def add_contact(name,details):
phonebook[name] = details
print ('Contact ' + name + ' with phone ' + details[0]
+ ', email ' + details[1] + ' and address ' + details[2]
+ ' has been added successfully!')
print ('You now have ' + str(len(phonebook)) + ' contact(s) in your phonebook')
return phonebook
add_contact('Arturo Vidal', ('08140590', 'artvid@barca.com', 'Barcelona'))