leetcode practice - python3 (9)

NoSuchKey