给定一个名称，以及一个包含该名称及其对应电话号码的字典，编写Python代码以查找该名称的电话号码。
字典{'Alice': '555-1234', 'Bob': '555-5678', 'Charlie': '555-9876'}和名称'Alice'
```python
directory = {'Alice': '555-1234', 'Bob': '555-5678', 'Charlie': '555-9876'}
name = 'Alice'

if name in directory:
    phone_number = directory[name]
    print(f"{name}'s phone number is {phone_number}")
else:
    print(f"{name} not found in directory")
```


输出:

    Alice's phone number is 555-1234