title: How to add a key/value to the HashMap?
body: <pre class="lang-py prettyprint-override"><code>class HashMap:
      def __init__(self):
          self.max_length = 8
          self.max_load_factor = 0.8
          self.length = 0
          self.map = [None] * self.max_length
  
      def get(self, key, default):
          value = dict.get(key, default)
          return value  # returns the value for key if key is in the dictionary, else
                        # default. If default is not given, it defaults to none.
  
      def set(self, key, value):
          #need to add the key value pair into the hashmap
          #if self.max_load_factor &gt;= .8:
              #refresh the map into a map double the capacity
  </code></pre>
  <p>So I was able to put in the <code>get()</code> method for my hashmap, that was relatively simple (which returns the value for the key if the key is in the dictionary, etc, …) But how do I add a key value pair into the hashmap itself?</p>
  <p>Could someone point me in the correct direction? Do I need to add it to the <code>self.map</code> instance?</p>