<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Tanisha Talks Tech]]></title><description><![CDATA[🌍 Explorer. 📊 Data nerd. 👩🏾‍🔬 Stem Advocate.
I write about python, SQL, and cloud computing]]></description><link>https://www.tanishapayne.com</link><generator>RSS for Node</generator><lastBuildDate>Tue, 07 Apr 2026 19:59:03 GMT</lastBuildDate><atom:link href="https://www.tanishapayne.com/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Python Enumerate]]></title><description><![CDATA[The enumerate() function returns a sequence of (index, item) tuples.
Enumerate takes two parameters: iterable and start.
enumerate(iterable, start)
Iterable - the collection of items to be returned as an enumerate object
Start - starting index for th...]]></description><link>https://www.tanishapayne.com/python-enumerate</link><guid isPermaLink="true">https://www.tanishapayne.com/python-enumerate</guid><category><![CDATA[Python]]></category><category><![CDATA[python beginner]]></category><dc:creator><![CDATA[Tanisha Payne]]></dc:creator><pubDate>Wed, 04 Jan 2023 01:32:40 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/stock/unsplash/d8da0a0d26d020430ed6fa002d57356f.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>The enumerate() function returns a sequence of (<em>index, item</em>) tuples.</p>
<p>Enumerate takes two parameters: iterable and start.</p>
<p><code>enumerate</code>(<em>iterable, start</em>)</p>
<p>Iterable - the collection of items to be returned as an enumerate object</p>
<p>Start - starting index for the enumerate object. If the start value is omitted the default value is 0</p>
<h3 id="heading-how-to-use-enumerate-in-python"><strong>How to Use enumerate() in python</strong></h3>
<pre><code class="lang-python">countries = [<span class="hljs-string">"France"</span>, <span class="hljs-string">"ROC"</span>, <span class="hljs-string">"United States of America"</span>, <span class="hljs-string">"United States of America"</span>, <span class="hljs-string">"Italy"</span>, <span class="hljs-string">"ROC"</span>, <span class="hljs-string">"Canada"</span>, <span class="hljs-string">"Spain"</span>, <span class="hljs-string">"Canada"</span>, <span class="hljs-string">"Great Britian"</span>]

list(enumerate(countries))

-----------------------------------------------------------------------
[(<span class="hljs-number">0</span>, <span class="hljs-string">'France'</span>),
 (<span class="hljs-number">1</span>, <span class="hljs-string">'ROC'</span>),
 (<span class="hljs-number">2</span>, <span class="hljs-string">'United States of America'</span>),
 (<span class="hljs-number">3</span>, <span class="hljs-string">'United States of America'</span>),
 (<span class="hljs-number">4</span>, <span class="hljs-string">'Italy'</span>),
 (<span class="hljs-number">5</span>, <span class="hljs-string">'ROC'</span>),
 (<span class="hljs-number">6</span>, <span class="hljs-string">'Canada'</span>),
 (<span class="hljs-number">7</span>, <span class="hljs-string">'Spain'</span>),
 (<span class="hljs-number">8</span>, <span class="hljs-string">'Canada'</span>),
 (<span class="hljs-number">9</span>, <span class="hljs-string">'Great Britian'</span>)]
</code></pre>
<p>In our output, we are given a list of tuples that return the index and its corresponding item.</p>
<p>📝 Note: Because we didn’t declare a start value our index is a default of 0.</p>
<h3 id="heading-for-loop"><strong>For Loop</strong></h3>
<pre><code class="lang-python"><span class="hljs-keyword">for</span> index, country <span class="hljs-keyword">in</span> enumerate(countries, start=<span class="hljs-number">1</span>):
    print(index, country)
-----------------------------------------------------------------------
<span class="hljs-number">1</span> France
<span class="hljs-number">2</span> ROC
<span class="hljs-number">3</span> United States of America
<span class="hljs-number">4</span> United States of America
<span class="hljs-number">5</span> Italy
<span class="hljs-number">6</span> ROC
<span class="hljs-number">7</span> Canada
<span class="hljs-number">8</span> Spain
<span class="hljs-number">9</span> Canada
<span class="hljs-number">10</span> Great Britian
</code></pre>
<p>You’ll most likely encounter the enumerate function using a for loop to iterate through objects.</p>
<p>Our item in this for loop is ranked placed countries.</p>
<p>In real life, we associate gold, silver, and bronze medals with first, second, and third place. So the start parameter has been changed to 1 to reflect those places in our output.</p>
<h3 id="heading-why-use-enumerate"><strong>Why use enumerate?</strong></h3>
<p>A more complex example is one in which we want to find a country's rankings for a single event given an ordered list. Since multiple people from one country can qualify for an event we can create a hashmap.</p>
<pre><code class="lang-python"><span class="hljs-comment">#Store the index position of duplicate items</span>
countries = [<span class="hljs-string">"France"</span>, <span class="hljs-string">"ROC"</span>, <span class="hljs-string">"United States of America"</span>, <span class="hljs-string">"United States of America"</span>,
                   <span class="hljs-string">"Italy"</span>, <span class="hljs-string">"ROC"</span>, <span class="hljs-string">"Canada"</span>, <span class="hljs-string">"Spain"</span>, <span class="hljs-string">"Canada"</span>, <span class="hljs-string">"Great Britian"</span>]

country_map = {country:[] <span class="hljs-keyword">for</span> country <span class="hljs-keyword">in</span> set(countries)}

print(country_map)

-----------------------------------------------------------------------

{<span class="hljs-string">'Italy'</span>: [], <span class="hljs-string">'Spain'</span>: [], <span class="hljs-string">'France'</span>: [], <span class="hljs-string">'Great Britian'</span>: [], <span class="hljs-string">'United States of America'</span>: [], <span class="hljs-string">'ROC'</span>: [], <span class="hljs-string">'Canada'</span>: []}
</code></pre>
<p>Once a hashmap has been created you can use enumerate in a for loop to store the index for each occurrence of a country's ranked place.</p>
<pre><code class="lang-python"><span class="hljs-comment">#Use enumerate to store the index for each occurence</span>
<span class="hljs-keyword">for</span> index, country <span class="hljs-keyword">in</span> enumerate(countries, start=<span class="hljs-number">1</span>):
    country_map[country].append(index)

country_map

-----------------------------------------------------------------------

{<span class="hljs-string">'Italy'</span>: [<span class="hljs-number">5</span>],
 <span class="hljs-string">'Spain'</span>: [<span class="hljs-number">8</span>],
 <span class="hljs-string">'France'</span>: [<span class="hljs-number">1</span>],
 <span class="hljs-string">'Great Britian'</span>: [<span class="hljs-number">10</span>],
 <span class="hljs-string">'United States of America'</span>: [<span class="hljs-number">3</span>, <span class="hljs-number">4</span>],
 <span class="hljs-string">'ROC'</span>: [<span class="hljs-number">2</span>, <span class="hljs-number">6</span>],
 <span class="hljs-string">'Canada'</span>: [<span class="hljs-number">7</span>, <span class="hljs-number">9</span>]}
</code></pre>
<p>Now that we have a dictionary with all our countries and their ranking you can easily find out the rankings of particular countries.</p>
<pre><code class="lang-python">country_map[<span class="hljs-string">'United States of America'</span>]

----------------------------------------------------------------------

[<span class="hljs-number">3</span>, <span class="hljs-number">4</span>]
</code></pre>
<p>Here we see the United States of America placed in both 3rd and 4th in the Beijing 2022 Figure Skating Ice Dance event.</p>
<p>One way that I remember when I need to use enumerate is when I encounter a problem in which I need to count and assign a number to items in a list in order.</p>
<p>What are some other ways enumerate method can be used? Feel to leave me feedback in the comments. Happy Coding! 🌟💻</p>
<p>source: <a target="_blank" href="https://olympics.com/en/olympic-games/beijing-2022/results/figure-skating/ice-dance">https://olympics.com/en/olympic-games/beijing-2022/results/figure-skating/ice-dance</a></p>
]]></content:encoded></item><item><title><![CDATA[How I landed a job in tech during the pandemic]]></title><description><![CDATA[The year 2020 will no doubt be a remembered year for us all. Not only was this the year a global pandemic broke out. It was also the year I decided to travel(and get stuck overseas), finish my bachelor’s degree, and search for a job. On the positive ...]]></description><link>https://www.tanishapayne.com/how-i-landed-a-job-in-tech-during-the-pandemic</link><guid isPermaLink="true">https://www.tanishapayne.com/how-i-landed-a-job-in-tech-during-the-pandemic</guid><category><![CDATA[Learning Journey]]></category><category><![CDATA[job search]]></category><category><![CDATA[interview]]></category><category><![CDATA[newbie]]></category><category><![CDATA[networking]]></category><dc:creator><![CDATA[Tanisha Payne]]></dc:creator><pubDate>Fri, 19 Nov 2021 23:24:56 GMT</pubDate><content:encoded><![CDATA[<p>The year 2020 will no doubt be a remembered year for us all. Not only was this the year a global pandemic broke out. It was also the year I decided to travel(and get stuck overseas), finish my bachelor’s degree, and search for a job. On the positive side, schools and companies were forced to make the push to remote work. Most tech companies were already in a position to thrive. I took advantage of all the resources available online that I could everything from Twitter, Linkedin, freecodecamp, and more.</p>
<p><strong>Make connections </strong></p>
<p>The first resource I took advantage of outside of the endless technical videos on Youtube and articles was LinkedIn. Alongside brushing up on the technical knowledge I needed I began working on reaching out to my already established network, my friends. When I was in school whenever someone mentioned networking to me my mind would often immediately think about the professionals I know, usually in higher positions in the career field that I aspired to work in, and often times that answer was usually one or none. This is often the answer among people like myself who are at an entry-level or switching careers. Reaching out to managers and recruiters cold when you are entry-level or have no experience in the field can be quite intimidating. So I made it a point to keep in touch with my peers, most of whom were able to land internships and jobs at tech companies I was also interested in. While they were a huge help in making referrals for me I also did the thing I dreaded doing. Reaching out and connecting with recruiters, hiring managers, and engineers. It actually didn’t go as horrible as I thought it would. If you don’t get a response right away don’t take it personally. Also, be sure that you are optimizing these conversations by asking meaningful questions. Don’t just ask for a job, this is an opportunity to find out from an insider what it's like to work at that company.</p>
<p><strong>What do you value?</strong></p>
<p>After reaching out to my peers and having them refer me to recruiters or managers at their companies I began composing my own list of companies that I desired to work at. Applying for jobs as an entry-level candidate can be daunting! But you do have a choice over the type of company you would like to work for that aligns with your needs and values. Research and look up the companies values. It’s important to remember that you are also interviewing companies to see if they are a good fit for you.  Figure out what’s really important to you, paid time off, remote work, health benefits, opportunities for growth, and continuing education. Knowing what you want and need before starting the interviewing process can help you to craft better questions for the interview.</p>
<p><strong>Job Title Doesn’t Always Matter</strong></p>
<p>While I talked about how it is important to know what you are looking for, it’s also important not to get too attached to a title. Throughout your career, your job title can and will most likely change several times. Pay attention to skills you already possess and the skills you wish to learn. Employers will often have a long list of requirements and wanted skills. It’s okay not to check off every box listed on the posting. Even if you only possess two of the skills listed and the others are of interest to you, go for it! </p>
<p><strong>Shortlist of Resources</strong> </p>
<p>Career Networking  </p>
<p><a target="_blank" href="https://www.linkedin.com/">LinkedIn</a> </p>
<p>Questions to ask during an interview if you can’t come up with any
 <a target="_blank" href="https://www.themuse.com/advice/51-interview-questions-you-should-be-asking">https://www.themuse.com/advice/51-interview-questions-you-should-be-asking</a> </p>
<p>Coding skills </p>
<p><a target="_blank" href="https://www.freecodecamp.org/">freecodecamp</a><br /><a target="_blank" href="https://www.hackerrank.com/">hackerrank</a><br /><a target="_blank" href="https://www.codewars.com/dashboard">codewars</a>  </p>
<p>People on Twitter who post great advice and resources in tech! </p>
<p> <a target="_blank" href="https://twitter.com/RandallKanna">@RandallKanna</a> 
 <a target="_blank" href="https://twitter.com/DThompsonDev">@DThompsonDev</a> 
 <a target="_blank" href="https://twitter.com/baddiesintech">@baddiesintech</a> 
 <a target="_blank" href="https://twitter.com/catalinmpit">@catalinmpit</a> 
 <a target="_blank" href="https://twitter.com/techgirl1908">@techgirl1908</a> 
 <a target="_blank" href="https://twitter.com/kelseyhightower">@kelseyhightower</a> 
 <a target="_blank" href="https://twitter.com/GergelyOrosz">@GergelyOrosz</a> 
 <a target="_blank" href="https://twitter.com/swyx">@swyx</a> </p>
<p>There are so many resources I used and people who I reached out to during this process that would make this resource list quite long. These are just a few that jump-started me. I encourage you to find your own. Remember that networking goes beyond reaching out when you need a job, the people who you reach out to could also potentially become mentors or a support system within the industry in the future. </p>
]]></content:encoded></item></channel></rss>