Leetcode Design Hashmap Python Syntax For Length