Easy
Safe Lookup
Prices: tea 20, coffee 50, cake 80. Read an item and print its price, or
No such item: NAME, by catching KeyError.Input
One word.
Output
One line.
Sample 1
Input
tea
Output
20
Sample 2
Input
juice
Output
No such item: juice
Output appears here