Record Case Detail

Notes

This function is in beta test. Please help improve it in the issues here.

Stderr

Traceback (most recent call last):
  File "phonebook.py", line 46, in <module>
    phone_book_dict.pop(name)
KeyError: 'Noah'

Hints

Your answer may be identical to the JOJ answer in the first several lines.

However, the main problem you meet now is Runtime Error. And the exit code of your program is 1, which should be 0.

Please double check your code to solve this problem and try again.

Your Answer

['add', 'Jack', '15417537306']
add
Jack
15417537306
{'Jack': 15417537306}
['add', 'Oliver', '13195280749']
add
Oliver
13195280749
{'Jack': 15417537306, 'Oliver': 13195280749}
['add', 'Harry', '13645939496']
add
Harry
13645939496
{'Jack': 15417537306, 'Oliver': 13195280749, 'Harry': 13645939496}
['edit', 'Jacob', '11001804103']
edit
Jacob
11001804103
{'Jack': 15417537306, 'Oliver': 13195280749, 'Harry': 13645939496}
['remove', 'Noah']
remove
Noah

JOJ Answer

{'Jack': 15417537306}
{'Jack': 15417537306, 'Oliver': 13195280749}
{'Jack': 15417537306, 'Oliver': 13195280749, 'Harry': 13645939496}
{'Jack': 15417537306, 'Oliver': 13195280749, 'Harry': 13645939496}
{'Jack': 15417537306, 'Oliver': 13195280749, 'Harry': 13645939496}
{'Jack': 15417537306, 'Oliver': 13195280749, 'Harry': 13645939496}
{'Jack': 10492909267, 'Oliver': 13195280749, 'Harry': 13645939496}
{'Jack': 10492909267, 'Oliver': 13195280749, 'Harry': 13645939496, 'Jacob': 16988324411}
{'Jack': 10492909267, 'Oliver': 13195280749, 'Harry': 13645939496, 'Jacob': 16988324411}
{'Jack': 10492909267, 'Oliver': 13195280749, 'Harry': 13645939496, 'Jacob': 16988324411}
{'Jack': 10492909267, 'Oliver': 13195280749, 'Harry': 14130843740, 'Jacob': 16988324411}
{'Oliver': 13195280749, 'Harry': 14130843740, 'Jacob': 16988324411}
{'Oliver': 13195280749, 'Harry': 14130843740, 'Jacob': 16988324411}
{'Oliver': 13195280749, 'Harry': 14130843740, 'Jacob': 16988324411, 'George': 17472092941}
{'Oliver': 19051407344, 'Harry': 141308