Exercise 10 · Chapter: DictionariesOptional+50 XP
Contact Book
Create a nested dictionary with 2 contacts. Each contact has a phone number and email:
- Alice: phone 111-2222, email alice@mail.com
- Bob: phone 333-4444, email bob@mail.com
Read a name from input and print their phone and email.
Example: for Alice:
Phone: 111-2222 Email: alice@mail.com
Need a hint?
3 available · costs 5 XP each
python
Output
Run your code to see the output here.