Contact Lookup and Update

Complete add_or_update(name, number) so it adds a new contact, or updates the number if the name is already a key in contacts. Input is name,number on one line.

main.py
Loading editor…

Console

Run your code to see output here.