CJCoding With Joseph
15free / daySign inCreate account

Phone Book Lookup

A phone book dict maps names to numbers. Read one name from the input (one line, no prompt). Use in to check the key first: if the name is in the book, print its number; otherwise print exactly Not found. Input: one line. Output: one line either way.

Expected Output:

555-0199

= newline. The output ends with a newline — print one after the last line.

Hints3 available
Topics:
Dictionaries
📥 Auto-Input:
Omar\n
This input is automatically fed to your program's stdin
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Ctrl+Space to expand shortcuts (pr, inp, def)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.