leetcode practice - python3 (7)

NoSuchKey