<?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" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Rishitha Dama on Medium]]></title>
        <description><![CDATA[Stories by Rishitha Dama on Medium]]></description>
        <link>https://medium.com/@RishithaDama?source=rss-2009f0d5714b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*sDpz4DKuuyqHosii</url>
            <title>Stories by Rishitha Dama on Medium</title>
            <link>https://medium.com/@RishithaDama?source=rss-2009f0d5714b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 21:23:09 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@RishithaDama/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[3 Common Beginner Mistakes I Made with Python Strings]]></title>
            <link>https://medium.com/@RishithaDama/3-common-beginner-mistakes-i-made-with-python-strings-c4f4171aff70?source=rss-2009f0d5714b------2</link>
            <guid isPermaLink="false">https://medium.com/p/c4f4171aff70</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[beginner-programming-tips]]></category>
            <category><![CDATA[coding-tips]]></category>
            <category><![CDATA[python-programming]]></category>
            <category><![CDATA[python-strings]]></category>
            <dc:creator><![CDATA[Rishitha Dama]]></dc:creator>
            <pubDate>Sun, 04 Jan 2026 20:06:05 GMT</pubDate>
            <atom:updated>2026-01-04T20:06:05.817Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>In Python, strings are one of the most important topics for building logical code. A string is a sequence of characters that are common everywhere in the present world. We use them in messages, data and even in code. However, beginners fall into the mistake trap easily, which can lead to errors and results we don’t intend. In this blog, we will go through mistakes I made as a beginner and how to avoid them.</p><h3>1. Confused with single and double quotes</h3><p>Strings use both single (‘) and double quotes (“) in the code for readability.</p><p>Mistake:</p><pre>string = &quot;Hello World&#39;   # SyntaxError due to mismatched quotes<br></pre><p>Fix:</p><p>Use matching quotes.</p><pre>string = &quot;Hello World&quot;<br>string = &#39;Hello World&#39;</pre><h3>2. Out of Range Index</h3><p>Mistake:</p><pre>string = &quot;Python&quot;<br>print(string[7])      # IndexError: string index out of range</pre><p>Fix:</p><p>Remember, indexing starts with 0 and goes up to len(string) — 1. Use len() to check the length of the string.</p><pre>print(string[0])         # P<br>print(len(string)-1)     # 5 → index of last character<br>print(len(string))       # 6</pre><h3>3. Forgetting Strings are Immutable</h3><p>Mistake:</p><pre>string = &quot;Python&quot;<br>string[0] = &quot;K&quot;       # TypeError: &#39;str&#39; object does not support item assignment</pre><p>Fix:</p><p>Strings are immutable. Create a new string instead of modifying the existing one.</p><pre>string = &quot;K&quot; + string[1:]<br>print(string)   #Kython</pre><h3>Conclusion</h3><p>Python strings are simple but can be confusing for beginners. Avoiding common mistakes such as these can help in writing better code.</p><p>Tip: Always remember that string indexes start at 0 and strings are immutable.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c4f4171aff70" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>