Computer Science (Python) > computational-thinking-and-programming-2 > Revision Of Python Topics
Write a Python function add_contact() that accepts a dictionary phone_book, a name, and a phone_number. The function should add the name and phone number to the dictionary. If the name already exists, print "Contact already exists" instead of updating it.
Current Session
Community Stats
Track Your Progress
Sign up to save your practice progress and get personalized insights across all topics.