<?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 Amanithota on Medium]]></title>
        <description><![CDATA[Stories by Amanithota on Medium]]></description>
        <link>https://medium.com/@amanithota2?source=rss-ce0f1ff16973------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*_yaYM6BkfLO81Sbf</url>
            <title>Stories by Amanithota on Medium</title>
            <link>https://medium.com/@amanithota2?source=rss-ce0f1ff16973------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 10:28:28 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@amanithota2/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 and String Methods in Python]]></title>
            <link>https://medium.com/@amanithota2/strings-and-string-methods-in-python-41800639996f?source=rss-ce0f1ff16973------2</link>
            <guid isPermaLink="false">https://medium.com/p/41800639996f</guid>
            <category><![CDATA[python-string-methods]]></category>
            <dc:creator><![CDATA[Amanithota]]></dc:creator>
            <pubDate>Wed, 18 Nov 2026 16:49:42 GMT</pubDate>
            <atom:updated>2026-11-18T16:49:42.659Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Introduction to Strings :</strong></p><p>A string in Python is a collection of characters, letters, numbers, or symbols enclosed within single quotes ( ‘ ‘ ), double quotes ( “ “ ), or triple quotes ( ‘ ‘ ‘ ‘ ‘ ‘).</p><p>Strings are used to store and display text in Python.</p><p><strong>Example:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/309/1*BiL4s-dg-dhrWBJ-ERPxkw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/348/1*0raj_7A1iICZYbFkVd89Gw.png" /></figure><p><strong>String Methods :</strong></p><p>String methods are built-in functions in Python that are used to perform different operations on strings, such as converting uppercase to lowercase, removing spaces, replacing words, and counting characters.</p><p><strong>Examples of String Methods :</strong></p><p>String methods are used to perform different operations on strings, such as converting letters, removing spaces, replacing words, and searching for text.</p><p><strong>1. upper() Method :</strong></p><p>The upper ( ) method converts all lowercase letters into uppercase letters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/430/1*wy0j_qrBemWIKIKL7g4raQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/388/1*a1HideFL2Y5uEU6fIQXAVQ.png" /></figure><p><strong>2. lower() Method :</strong></p><p>The lower ( ) method converts all uppercase letters into lowercase letters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/417/1*wtjkwMafcILWB1oTw8PZBA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/312/1*hU1YNzkDs-udJHdptPY9hQ.png" /></figure><p><strong>3. capitalize() Method :</strong></p><p>The capitalize ( ) method converts the first letter of a string into uppercase and the remaining letters into lowercase.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/376/1*0spxGBZcRhuOeKG0UVOJ0w.png" /></figure><p><strong>4. title() Method :</strong></p><p>The title ( ) method converts the first letter of each word into uppercase.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/481/1*CWGozKkgyWBouU8dB1I-Iw.png" /></figure><p><strong>5. replace() Method :</strong></p><p>The replace ( ) method replaces an old word or character with a new word or character.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/516/1*FJUOygvVB5APhB9_gixtvg.png" /></figure><p><strong>6. strip() Method :</strong></p><p>The strip ( ) method removes unwanted spaces from the beginning and end of a string.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*WMymLXt_NcLiZ0TfWmn1LA.png" /></figure><p><strong>7. find() Method :</strong></p><p>The find ( ) method returns the position of a character or word in a string.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/352/1*r_lG8kfHyE5hUwXK9DB_0g.png" /></figure><p><strong>8. count() Method :</strong></p><p>The count ( ) method counts how many times a character or word appears in a string.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/307/1*s_bhlrMbqjxzTd8va5JVEw.png" /></figure><p><strong>9. isalpha() Method :</strong></p><p>The isalpha ( ) method checks whether a string contains only alphabet letters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/322/1*yrDiQ2ebxosfQDFS1Y8ILw.png" /></figure><p><strong>10. isdigit() Method :</strong></p><p>The isdigit ( )method checks whether a string contains only digits.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/315/1*4P1QPYVhfKBeT90unRDO-A.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=41800639996f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Type Conversion]]></title>
            <link>https://medium.com/@amanithota2/type-conversion-1eb2ec60b077?source=rss-ce0f1ff16973------2</link>
            <guid isPermaLink="false">https://medium.com/p/1eb2ec60b077</guid>
            <category><![CDATA[type-conversion]]></category>
            <dc:creator><![CDATA[Amanithota]]></dc:creator>
            <pubDate>Wed, 18 Nov 2026 16:01:39 GMT</pubDate>
            <atom:updated>2026-11-18T16:01:39.214Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Definition:</strong></p><p>Type conversion in Python is the process of converting one data type into another data type. It is used to change values from one type, such as integer, float, or string, into another type.</p><p>There are two types of type conversion:</p><ol><li><strong>Implicit Type Conversion:</strong> Python automatically converts one data type into another.</li><li><strong>Explicit Type Conversion:</strong> The programmer manually converts one data type into another using functions like int( ) , float( ) , and str( ) .</li></ol><p><strong>Example 1: Integer to Float</strong></p><p><strong>Definition:</strong></p><p>Integer to Float conversion means converting a whole number (integer) into a decimal number (float) using the float( ) function in Python.</p><p><strong>Explanation:</strong></p><p>Here, the variable a stores an integer value 10 . The float( ) function converts it into 10.0 , which is a floating-point number.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/327/1*BEz7oMDTTMH5rJQhL2cofQ.png" /></figure><p><strong>Example 2: Float to Integer</strong></p><p><strong>Definition:</strong></p><p>Float to Integer conversion means converting a decimal number (float) into a whole number (integer) using the int( ) function in Python.</p><p><strong>Explanation:</strong></p><p>Here, the variable a stores a decimal value 15.8 . The int( ) function converts it into 15 by removing the decimal part.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/391/1*kZ0D0XnPvF87huObNmhVog.png" /></figure><p><strong>Example 3: Integer to String</strong></p><p><strong>Definition:</strong></p><p>Integer to String conversion means converting a whole number (integer) into text (string) using the str( ) function in Python.</p><p><strong>Explanation:</strong></p><p>Here, the variable a stores an integer value 100 . The str( ) function converts it into a string value “100” .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/355/1*aQvde0gF8ADBblx-zk6kMA.png" /></figure><h3>Conclusion:</h3><p>Type conversion in Python is used to convert one data type into another. It helps us change integers into floats, floats into integers, and integers into strings. Python provides functions like int( ) , float( ) ,and str( ) to perform type conversion easily.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1eb2ec60b077" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Python Syntax]]></title>
            <link>https://medium.com/@amanithota2/python-syntax-7146d1329cdc?source=rss-ce0f1ff16973------2</link>
            <guid isPermaLink="false">https://medium.com/p/7146d1329cdc</guid>
            <category><![CDATA[python-synta]]></category>
            <dc:creator><![CDATA[Amanithota]]></dc:creator>
            <pubDate>Tue, 17 Nov 2026 05:40:40 GMT</pubDate>
            <atom:updated>2026-11-17T05:40:40.498Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>1. Introduction :</strong></p><p>Python syntax refers to the set of rules that we follow while writing Python programs. It tells us how to write code correctly so that the Python interpreter can understand and execute it.</p><p><strong>2. Basic Python Syntax</strong><br><strong>Example :</strong><br>print(“Hello World”)</p><p>Output:<br>Hello World</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/324/1*PjSsp7W493pVosVFlUjrMw.png" /></figure><p><strong>3. Variables : </strong><br>Variables are used to store data values in a program.A variable is a name given to a memory location.We can store different types of data, such as numbers, strings, and decimal values.The value of a variable can be changed during program execution.<br><strong>Example:<br></strong>a = 10<br>b = 20<br>print(a)<br>print(b)</p><p>Output :</p><p>10</p><p>20</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/286/1*HUAjqH5w8b7ADjXpT0xXow.png" /></figure><p><strong>4. Comment : </strong><br>Comments are used to explain the code.They make the program easy to understand.Comments are not executed by the Python interpreter.In Python, we use the # symbol to write single-line comments.<br><strong>Example:</strong><br># This is a comment<br>print(“Hello Python”)</p><p>Output :</p><p>Hello Python</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/379/1*UjibU1MDnSYMfJuqelqzFQ.png" /></figure><p><strong>5. Indentation :</strong><br>Indentation means giving spaces at the beginning of a line. Python uses indentation to define blocks of code.<br><strong>Example:</strong></p><p>if 10 &gt; 5:</p><p>print(“10 is greater”)</p><p>Output:<br><br>10 is greater</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/408/1*Cto6C_ZYWufU1CnRpcBdsw.png" /></figure><p><strong>6. Data Types :<br></strong>Data types define the type of data stored in a variable.<br><strong>Examples:</strong><br>int — Integer numbers<br>float — Decimal numbers<br>str — Text<br>bool — True or False</p><p><strong>Example:</strong><br>a = 10<br>b = 10.5<br>c = “Python”<br>d = True</p><p>print(type(a))<br>print(type(b))<br>print(type(c))<br>print(type(d))</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/366/1*9ZrvpJQi1aYHB4cN7I2G1A.png" /></figure><p><strong>7. Operators :</strong><br>Operators are used to perform operations on values.<br><strong>Example:</strong><br>a = 10<br>b = 5</p><p>print(a + b)<br>print(a — b)<br>print(a * b)<br>print(a / b)</p><p>Output:<br>15<br>5<br>50<br>2.0</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/415/1*Wyu87hLUB_HcY9ZlfkjfuA.png" /></figure><p><strong>8. Conditional Statements :</strong><br>Conditional statements are used to make decisions in Python.<br><strong>Example:<br></strong>a = 10</p><p>if a &gt; 5:<br> print(“A is greater than 5”)</p><p>Output:<br><br>A is greater than 5</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/487/1*n_Dcheg5Yu_GzhPmGyFKrw.png" /></figure><p><strong>9. Conclusion :</strong></p><p>Python syntax is very easy to learn and understand. By learning basic concepts like variables, comments, indentation, data types and operators, we can write Python programs easily. It helps us to improve our programming skills.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7146d1329cdc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Working Of Python Engine]]></title>
            <link>https://medium.com/@amanithota2/working-of-python-engine-da7d86550f22?source=rss-ce0f1ff16973------2</link>
            <guid isPermaLink="false">https://medium.com/p/da7d86550f22</guid>
            <category><![CDATA[python-engine]]></category>
            <dc:creator><![CDATA[Amanithota]]></dc:creator>
            <pubDate>Mon, 16 Nov 2026 16:16:26 GMT</pubDate>
            <atom:updated>2026-11-16T16:16:26.707Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Introduction :</strong></p><p>Python is a programming language used to develop applications and solve problems. The Python engine helps to run Python programs and gives the output.</p><p><strong>Working of Python Engine :</strong></p><p>1.First, we write the Python program in the editor.<br>2. Python reads the written code.<br>3. It checks whether the code has any syntax errors.<br>4. After checking, Python converts the code into bytecode.<br>5. The Python Virtual Machine executes the bytecode.<br>6. Finally, we get the output on the screen.</p><p><strong>Example 1 :</strong></p><p>a = 10<br>b = 20<br>c = a + b<br>print(c)</p><p>Output:</p><p>30</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/231/1*b28T4k-ucxOHPOfVYT7Egg.png" /></figure><p><strong>Explanation :</strong></p><p>In this example, we take two variables, a and b. The values are 10 and 20. Python adds both values and stores the result in c. Finally, the print statement displays the output as 30.</p><p><strong>Example 2 : </strong><br><br>x = 5<br>y = 4<br>result = x * y<br>print(result)</p><p>Output:<br>20</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/313/1*loR7A89Y7jRSXF0FslJyeg.png" /></figure><p><strong>Explanation:</strong></p><p>First, we assign 5 to variable x.We assign 4 to variable y.Python multiplies both values.The result is stored in the result variable.Finally, Python displays 20.</p><p><strong>Example 3 :</strong></p><p>a = 1<br>b = 3<br>result = a + b<br>print(result)</p><p>Output:<br><br>4</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/235/1*W2Egtxt9GNlvhQTLZmf-WQ.png" /></figure><p><strong>Explanation:</strong></p><p>First, we take two variables called a and b.We assign the value 1 to a.We assign the value 3 to b.Python adds both values.The result is stored in the result variable.Finally, the output is displayed as 4.</p><p><strong>Conclusion :</strong></p><p>Python engine makes the execution of Python programs easy. It reads the code, checks errors, converts it into bytecode and executes it to produce the output.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=da7d86550f22" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>