title: How to create a counter without libraries?
body: <p>I want to build a <em><strong>counter</strong></em>(using only <strong>&quot;pure&quot; python --&gt; without libraries</strong>) that with a <em><strong>list of countries_nametags</strong></em>, it will <em>identify it on a <strong>dictionary</strong></em> and count the <strong>continent associated</strong> to that <strong>country_nametag</strong>.</p>
  <p>Example:</p>
  <pre><code>continent_dict = {'BR': 'America','GEO': 'Asia','JP': 'Asia','SWZ': 'Africa','GER':'Europe','SRB': 'Europe','ARG': 'America'}
  </code></pre>
  <p>List:</p>
  <pre><code>countries = ['PT','ARG','GEO','JP','SRB','BR']
  
  continent_counter = {'America':0, 'Asia':0,'Africa':0,'Europe':0,'Oceania':0} #dictionary that stores the number of occurencies
  for country in countries:
      continent_counter[continent_nations_dict[country]] = 1
  Max_Continent = max(continent_counter, continent_counter.get)
  </code></pre>
  <p>It gets <strong>error</strong>...(probably in the way i get <em><strong>max_continent values?</strong></em>)</p>