<?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 thirukolluru.haritha haritha on Medium]]></title>
        <description><![CDATA[Stories by thirukolluru.haritha haritha on Medium]]></description>
        <link>https://medium.com/@thirukolluruharitha?source=rss-1d1efdb8c8ef------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*9c3dd3o4n1kYLDjI</url>
            <title>Stories by thirukolluru.haritha haritha on Medium</title>
            <link>https://medium.com/@thirukolluruharitha?source=rss-1d1efdb8c8ef------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 02:40:01 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@thirukolluruharitha/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[Strings]]></title>
            <link>https://medium.com/@thirukolluruharitha/strings-ddd96bc54967?source=rss-1d1efdb8c8ef------2</link>
            <guid isPermaLink="false">https://medium.com/p/ddd96bc54967</guid>
            <category><![CDATA[string]]></category>
            <dc:creator><![CDATA[thirukolluru.haritha haritha]]></dc:creator>
            <pubDate>Sun, 15 Nov 2026 23:52:52 GMT</pubDate>
            <atom:updated>2026-11-16T05:19:31.592Z</atom:updated>
            <content:encoded><![CDATA[<p>They are bunch of tools or functions we can only apply on <strong>String.</strong></p><p><strong>Strings </strong>is a sequence of characters or elements in python are surrounded by either <strong>single ,double and triple </strong>quotation marks . Inside a string there are characters which are <strong>Alphabets</strong> ((A-Z) and (a-z)) , <strong>Numbers </strong>(0–9), <strong>Special symbols</strong>(*&amp;%$#@…).</p><p>‘hello’ is same as “hello” and “‘hello”’</p><p>Example: print(“hello”).</p><p>In python there are two types of data <strong>Mutable </strong>and <strong>Immutable.</strong></p><p><strong>Mutable: </strong>Once the data created on the same data we can add new data, replace and delete the data it is called <strong>Mutable data.</strong></p><p><strong>Immutable: </strong>Once the data or String is created we cant <strong>Add</strong>, <strong>Replace </strong>and <strong>Delete </strong>characters so it is called <strong>Immutable Data</strong>.</p><p>To access the element inside the strings we have 2 methods</p><ol><li><strong>Indexing </strong>: In strings positive index value starts from 0 and negative index value starts from -1. <strong>Indexing </strong>is method to access a single element in the string.</li></ol><p><strong>Syntax: </strong>Variable name[index] or string [index value]</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/447/1*hY5gLzZovjYkZ2yTDy0SoQ.png" /></figure><p>2. <strong>Slicing</strong>: It is used to access a sequence of characters. You can return a range of characters by using the slice syntax. Specify the start index and the end index, separated by a colon, to return a part of the string.</p><p><strong>Syntax: varname </strong>or <strong>string [</strong>starting index,ending index, step size].</p><p><strong>Ending </strong>indexing value to be taken as ‘<strong>but one</strong>’</p><p><strong>Step size</strong> value gives us how many steps we want to use, it will represent the direction and moves from <strong>left to right</strong> by default and the default step size value is <strong>+1 or 1.</strong></p><p><strong>Example</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/247/1*TDVRuYdDu0zAbY4VRVtFzA.png" /></figure><p><strong>String Methods: </strong>Python has a set of built-in methods that you can use on strings. All string methods return new values. They do not change the original string.</p><ol><li><strong>lower</strong>(): It converts upper case characters to lower case.</li></ol><p><strong>example:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/278/1*uxfFw7meVJCULU7mvEmYlA.png" /></figure><p>2. <strong>upper</strong>(): It converts lower case characters to upper case.</p><p><strong>Example</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/331/1*0mkqT8G7ILU3N65r4yp-zA.png" /></figure><p>3.<strong>Swap case()</strong>:It converts lower case characters to upper case and vice versa.</p><p><strong>Example</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/319/1*7adKTBA8I0_-EZhDZL1r2g.png" /></figure><p>4.<strong>capitalize </strong>(<strong>): Converts</strong> the first character to upper case and rest of the characters into lower.</p><p><strong>Example:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/430/1*p6xrdEKwpBz-xQK4y0Es6Q.png" /></figure><p>5.<strong>title</strong>() : Converts the first character of each word to upper case and rest of the characters into lower case.</p><p><strong>Example</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/295/1*XfDotdwhLaQy4ms61l-OAA.png" /></figure><p>6. <strong>count</strong>():Returns the number of times a specified value occurs in a string.It returns integer value.<strong>count</strong>() can be applied only once.We can provide starting and ending index in <strong>count</strong>()</p><p><strong>Example</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/409/1*fWkmeLRC355nPyXNOQaVvA.png" /></figure><p>7.<strong>index </strong>(): It is used to give you the index value of a sub string occurring at the “<strong>first occurrence</strong>”. It returns positive index by default.</p><p><strong>Example:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/314/1*AOIlxboN2tFGuxS9C2zS6Q.png" /></figure><p><strong>8</strong>.<strong>find</strong>(): It is same as index method by sing which we can find the index of sub string for the “first occurrence”. The difference between find() and index () is in find() if substring is not found it will return -1 where as in index() will return an error called <strong>value error: </strong>substring is not found.</p><p>If the application needs to crash and display error () then index () is used, find() is used when application should not crash and display error.</p><p><strong>Example:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/389/1*FEKnVdh9MYl0aeCjfY_JXQ.png" /></figure><p>9.<strong>strip </strong>(): By using which we can remove the character in the substring from the beginning and the end of the string. In strip () substring does not follow the sequence, every character is recognized as separate. Inside the strip () the default value will be space. Only one substring can be given in strip () as a substring.</p><p><strong>Example:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/337/1*0i0etY4cmdeHK90WM4e_7Q.png" /></figure><p>10. <strong>l strip</strong> (): It is part of <strong>strip </strong>() method by using which we can remove the character in the substring from the <strong>beginning </strong>character.</p><p><strong>Example:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/380/1*ovXW-YIutIUQZTWCoUMTVg.png" /></figure><p>11.<strong>rstrip</strong>():It is part of <strong>strip </strong>() method by using which we can remove the character in the substring from the <strong>end </strong>of the string.</p><p><strong>Example:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/325/1*YZqekUAaRPEutSMr49aAlA.png" /></figure><p>By combining both l strip() and rstrip() we can get result of strip().</p><p>12.<strong>split</strong>():By using which we can <strong>divide </strong>or <strong>split </strong>an entire string into a sub strings.Split() default condition is <strong>space </strong>.</p><p><strong>Example:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/319/1*zXlfjhpUZA36jUtv5KRaNg.png" /></figure><p>13 .<strong>rsplit</strong>(): it will split from <strong>right to left </strong>and output is the same as<strong> left to right </strong>.But the difference comeswhen we use <strong>maxsplit.</strong></p><p><strong>Example:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/328/1*1eRfMLeb2agvdQkuDcIL4g.png" /></figure><p>14.<strong>replace</strong>() : We can replace any character or a sequence of character inside a string with other character.</p><p><strong>replace (substring ,substring)</strong></p><p>the <strong>first</strong> substring is substring which you want to replace, <strong>second </strong>substring is which is to be replaced with.</p><p><strong>Example:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/383/1*4pg7h7SAB0KL6ddjS6qaoA.png" /></figure><p>15. <strong>rfind</strong>(): Find the occurrence at the ending but does not give negative value.</p><p>16.<strong>is upper()</strong> : It is used to check if all the <strong>alphabets </strong>are in <strong>upper </strong>case then it returns <strong>True</strong> else <strong>False.</strong></p><p><strong>Example:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/305/1*_LcaaE9bsUfPBsJTudvLCw.png" /></figure><p>17. <strong>is lower</strong>(): It is used to check if all the <strong>alphabets </strong>are in <strong>lower </strong>case then it returns <strong>True</strong> else <strong>False.</strong></p><p><strong>Example:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/266/1*4gKZY7gM9Pog_C6XpTefKQ.png" /></figure><p>18. <strong>is title</strong> () : Checks the first letter (word) character is capital and remaining is <strong>lower </strong>then it returns <strong>True </strong>else <strong>False</strong>.</p><p><strong>Example</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/275/1*eDFWu5Rjmi1R9swD4hrZMA.png" /></figure><p>19. <strong>isdigit</strong>(): Returns <strong>True </strong>if all the characters are numbers inside a string From (0–9) or <strong>false </strong>if <strong>special symbol</strong> or <strong>alphabets.</strong></p><p><strong>Example</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/285/1*DQXq1mGcyQnSKp9EAbdvHw.png" /></figure><p>20.<strong>isalpha</strong>(): Returns <strong>True </strong>if string contains alphabets else <strong>False </strong>if numbers or special symbols.</p><p><strong>Example:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/271/1*QKOznfUEt7SoG06MKguSdw.png" /></figure><p>21. <strong>isalnum</strong>():Returns <strong>True </strong>if string contains alphabets and numbers else <strong>False </strong>if special symbols.</p><p><strong>Example:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/327/1*LtnOQuhA0cP7Ja8s6rtHoQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ddd96bc54967" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Type Conversion]]></title>
            <link>https://medium.com/@thirukolluruharitha/type-conversion-79a7a0627532?source=rss-1d1efdb8c8ef------2</link>
            <guid isPermaLink="false">https://medium.com/p/79a7a0627532</guid>
            <category><![CDATA[python-type-conversion]]></category>
            <dc:creator><![CDATA[thirukolluru.haritha haritha]]></dc:creator>
            <pubDate>Sat, 14 Nov 2026 12:08:40 GMT</pubDate>
            <atom:updated>2026-11-14T12:08:40.311Z</atom:updated>
            <content:encoded><![CDATA[<p>This the technique that is used to convert from one datatype to another datatype with the <strong>int(), float()</strong> and <strong>complex ()</strong> methods.</p><p>They are <strong>two </strong>types of conversions</p><ol><li><strong>Implicit</strong></li><li><strong>Explicit</strong></li></ol><p><strong>1. Implicit Conversion: </strong>Whenever the type conversion is done by <strong>Python Engine </strong>automatically then it called <strong>Implicit conversion.</strong></p><p><strong>Example</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/493/1*a-Wu5AM0-sgPgTdI9KyY_A.png" /></figure><p>In above example, 1.2 datatype is float and 3 is integer and there addition operation in between .In order to perform addition , Python implicitly converts the datatype integer into float.</p><p>if python wants to perform this <strong>addition operation</strong>, the datatypes must be same. If the data types are different the python automatically perform type conversion to perform the operation .Python performs type conversion based on Rule importance, has there should be no loss of data when the data types are converted from one to another datatype. Python prioritizes the complex datatype, float and integer as there should not be any loss of data when converted.</p><p><strong>2. Explicit Conversion: </strong>When the programmer forcefully converts the datatype with the help tools to another datatype. These tools are called <strong>Constructor. </strong>For every datatype there is a <strong>constructor. </strong>Some of them are:</p><ol><li><strong>int (): Integer constructor: </strong>It will construct a <strong>integer </strong>value from a <strong>integer </strong>or <strong>float </strong>value.</li><li><strong>float (): Float</strong> <strong>constructor: </strong>It will construct a <strong>float </strong>value into a <strong>integer </strong>or <strong>float </strong>value.</li><li><strong>complex (): Complex</strong> <strong>constructor: </strong>The complex () constructor converts integer , float and complex.</li></ol><p><strong>Example:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/470/1*NmBxFFpDnuvofmsvgAcKCg.png" /></figure><p>Difference between <strong>Explicit</strong> and <strong>Implicit </strong>there is loss of data in <strong>Explicit conversion</strong> where as there is no loss of data in <strong>Implicit conversion</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=79a7a0627532" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Python Syntax]]></title>
            <link>https://medium.com/@thirukolluruharitha/python-syntax-1b16de16be84?source=rss-1d1efdb8c8ef------2</link>
            <guid isPermaLink="false">https://medium.com/p/1b16de16be84</guid>
            <dc:creator><![CDATA[thirukolluru.haritha haritha]]></dc:creator>
            <pubDate>Thu, 12 Nov 2026 15:30:01 GMT</pubDate>
            <atom:updated>2026-11-12T15:30:01.172Z</atom:updated>
            <content:encoded><![CDATA[<p>Python syntax refers to the set of rules that define how to write and organize code so that the Python interpreter can understand and execute it correctly. These rules ensure that your code is structured, formatted, and error-free.</p><p>Indentation in Python</p><p>Indentation in Python is crucial as it defines the blocks of code. Python uses indentation. This improves the readability of Python code but can also lead to indentation errors if not used correctly.</p><p>Example: print(“This is true!”)</p><p>print(“I am tab indentation”)</p><p>print (“I have no indentation”)</p><h3>Statements :</h3><p>A <strong>computer program</strong> is a list of “<strong>instructions</strong>” to be “executed” by a python engine. In a programming language, these programming instructions are called <strong>statements</strong>. Any instruction the python engine executes with error or without error it is called as a <strong>statement</strong>.</p><p><strong>Example</strong>: print (1+1)</p><p>print (“hi”)</p><p>print (2–2)</p><p><strong>There are 3 types of statements</strong></p><ol><li><strong>Single statements in Single Line</strong>.</li></ol><p><strong>Example</strong>: print (“hello world”).</p><p>2<strong>. Multiple Statement in Single Line.</strong></p><p><strong>Example</strong>: print (1+1) print (2+2) print(hi)</p><p>3.<strong>Single Statements in Multiple Line</strong>.</p><p><strong>Example</strong>: 1+2–3+5</p><p>(1\</p><p>+\</p><p>2\</p><p>-\</p><p>3\</p><p>+\</p><p>5)</p><p>In above example slash (\) is used to break the statement. We can use Slash (\) wherever we want to break the statement. Parenthesis is used at the starting and ending of the statement. At the end of the statement slash cannot be used at the end of the statement. When it is executed, it searches for next statement and compilation error may occur.</p><p><strong>4</strong>.<strong>Comments: </strong>Need of comments in <strong>programming language</strong> is to make the code more “<strong>readable</strong>”, which helps to debug the error easily. Single line comment can be used multiple times.</p><p>In <strong>python </strong>everything which is written is consider as <strong>statement </strong>by default, statements are converted into comments by using <strong>“#” hash symbol</strong>.</p><p><strong>Example</strong> : print (1+1) #Add</p><p>In above <strong>example </strong>the python executes the ‘#’ and ignores the remaining comments after the “#”. Python doesn’t supports “Multiline comments”.</p><h3>Variables</h3><p>Variables are containers for storing data values. To reuse the data, data need to be stored . The place where the data is stored is called variable.</p><p><strong>Variable name: </strong>The name given to the stored data , to identify the stored data.</p><p><strong>Example</strong>: variable name= data.</p><p>They are certain rules which is called “<strong>Naming Convention</strong>”.</p><p><strong>Naming Convention</strong>: Set of rules to create a variable name which is python syntax.</p><p><strong>Rule 1</strong>: Variable name should always start with an alphabet</p><p>(lowercase ,upper case) or “_” underscore.</p><p><strong>example</strong>: xyzy or _yz</p><p>10xy gives us syntax error.</p><p><strong>Rule 2: </strong>Variable name should not contain any special symbol/character except underscore (_).</p><p>Special symbol: ?, #,$,*,@,!.</p><p><strong>Example</strong>: x_yz is a variable, x@yz is not a variable.</p><p><strong>Rule 3</strong>. Variable name can contain numbers, but should not be First character.</p><p><strong>Example</strong>: x10z is a variable, 1xy is not a variable.</p><p><strong>Rule 4</strong>: Python is a “<strong>case-sensitive” language</strong> it treats upper case and lower case as different.</p><p><strong>Rule 5: </strong>Never use keywords as “<strong>variable name</strong>”. <strong>Keywords </strong>have reserved meaning and reserved memory in <strong>python. </strong>So we cannot use keyword.</p><p><strong>Example</strong>: True=10</p><p>In above example we cannot use True as a variable as it is keyword and have reserved meaning in python.</p><p><strong>Variable name Syntax:</strong></p><p><strong>Example : x=10</strong></p><p>In above example 10 is stored in RAM, Python creates space for 10 in RAM and address it with the variable ‘x’.</p><p>Whenever we are calling a variable which is not declared or not defined, Python generates an exception called “<strong>Name error</strong>” which is a <strong>logical error.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1b16de16be84" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Working Of Python Engine]]></title>
            <link>https://medium.com/@thirukolluruharitha/working-of-python-engine-308301180b0d?source=rss-1d1efdb8c8ef------2</link>
            <guid isPermaLink="false">https://medium.com/p/308301180b0d</guid>
            <dc:creator><![CDATA[thirukolluru.haritha haritha]]></dc:creator>
            <pubDate>Wed, 11 Nov 2026 16:28:59 GMT</pubDate>
            <atom:updated>2026-11-11T16:28:59.646Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ADATL6knwozBxNWca6RdLA.jpeg" /></figure><ol><li><strong>Source Code : </strong>The instruction is written in text editor and save file with the a (.py) extension. This file contains plain human readable text that a computer’s processor cannot directly understand.</li><li><strong>Python Compiler:</strong> When the instruction is executed, the engine breaks the code. Python complier checks the syntax of the instruction given i.e whether the source code is following all the python programming rules which is called abstract syntax error .</li><li><strong>Byte Code:</strong> Once the syntax is verified the internal compiler will translates the syntax error into the byte code. Byte code is low level language platform, independent set of instruction.</li><li><strong>Python Virtual Machine (P.V.M): </strong>The byte code is handed over to the PVM, which is the core runtime engine of python. The PVM read the byte code instructions one by one, links any external library modules you imported and translates them into binary machine code(0s and 1s) that your computer executes to produce the final output.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=308301180b0d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>