Description:
Simulate a simple phone book using a Python dictionary.
Simulate a simple phone book using a Python dictionary.
Python Code
phone_book = {
"Alice": "9876543210",
"Bob": "8765432109",
"Charlie":"7654321098"
}
name = "Bob"
if name in phone_book:
print(name + " number: " + phone_book[name])
else:
print("Contact not found")
Expected Output
Bob number: 8765432109