<?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 SHARU HAASAN .T on Medium]]></title>
        <description><![CDATA[Stories by SHARU HAASAN .T on Medium]]></description>
        <link>https://medium.com/@sharuhaasan?source=rss-39358c914f49------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*vAzgrx_gi5-GtJwCHmkS6g.jpeg</url>
            <title>Stories by SHARU HAASAN .T on Medium</title>
            <link>https://medium.com/@sharuhaasan?source=rss-39358c914f49------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 20:31:51 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sharuhaasan/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[OBJECT ORIENTED CONCPETS IN PYTHON]]></title>
            <link>https://medium.com/@sharuhaasan/object-oriented-concpets-in-python-cbe2258068e9?source=rss-39358c914f49------2</link>
            <guid isPermaLink="false">https://medium.com/p/cbe2258068e9</guid>
            <dc:creator><![CDATA[SHARU HAASAN .T]]></dc:creator>
            <pubDate>Tue, 10 May 2022 11:02:22 GMT</pubDate>
            <atom:updated>2022-05-10T11:02:22.224Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong><em>INTRODUCTION:</em></strong></h3><p>Object-Oriented Programming or known as OOPs is a programming paradigm that consists of principles like abstraction, encapsulation, inheritance, modularity, and polymorphism. Using the concept of OOPs is a highly efficient way of writing a program.</p><p><strong><em>ADVANTAGES OF OOPS:</em></strong></p><p>Re-usability of the program, Data Redundancy, Easy maintenance of the code, Security.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/520/0*4hWLUchXDJoN11ut.png" /></figure><p><strong><em>CONCEPTS 0F OOPS:</em></strong></p><ol><li>Class</li></ol><p>2. Objects</p><p>3. Abstraction</p><p>4. Encapsulation</p><p>5. Inheritance</p><p>6. Polymorphism</p><p><strong>CLASS:-</strong></p><p>A straight forward answer to this question is- A class is a collection of objects. Unlike the primitive data structures, classes are data structures that the user defines. They make the code more manageable.</p><p><strong>SYNTAX</strong> :</p><pre>class class_name :   <br>   class_content</pre><p><strong>EXAMPLE:</strong></p><p>Consider the case of a car showroom. You want to store the details of each car. Let’s start by defining a class first-</p><pre>class Car: pass</pre><p><strong>OBJECT:-</strong></p><p>An <strong>Object</strong> is an instance of a Class. Python is object-oriented programming language that stresses on objects i.e. it mainly emphasizes functions. Objects are basically an encapsulation of data variables and methods acting on that data into a single entity.</p><ul><li><strong>State</strong></li><li><strong>Behavior</strong></li><li><strong>Identity</strong></li></ul><p><strong>SYNTAX</strong>:</p><pre>obj = object_name()</pre><p><strong>EXAMPLE</strong>:</p><pre>obj1 = pen()print(obj1)</pre><h3>ABSTRACTION:-</h3><p>Data Abstraction refers to displaying only the essential information without any of the background details.</p><p>In simple words, it is used to make things less complicated for a user. A class with at least one abstract function is known as an abstract class.Any class with at least one abstract function is an abstract class. In order to create an abstraction class first, you need to import ABC class from <a href="https://www.google.com/url?sa=t&amp;rct=j&amp;q=&amp;esrc=s&amp;source=web&amp;cd=&amp;cad=rja&amp;uact=8&amp;ved=2ahUKEwjrtMSbwsXrAhVIzzgGHVMwDlkQFjAAegQIAxAB&amp;url=https%3A%2F%2Fdocs.python.org%2F3%2Flibrary%2Fabc.html&amp;usg=AOvVaw0Tb8GVbHgscdgGVAJbUvLR">abc</a> module. This lets you create abstract methods inside it. ABC stands for Abstract Base Class.</p><p><strong>EXAMPLE:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t1DYFYoH94YFeTQmOU-0ZA.png" /></figure><p><strong>ENCAPSULATION:-</strong></p><p>Data Encapsulation refers to the wrapping up of similar data into a single unit. This also means, hiding valuable information to prevent unauthorized user access. Encapsulation is also an essential aspect of object-oriented programming.</p><p>It is used to restrict access to methods and variables. In encapsulation, code and data are wrapped together within a single unit from being modified by accident.</p><p><strong>EXAMPLE:</strong></p><p>Now for actually preventing the access of attributes/methods from outside the scope of a class, you can use “ <strong>private members</strong> “. In order to declare the attributes/method as private members, use double underscore ( __ ) in the prefix. Such as- <strong>self.__name or def __method()</strong>; Both of these lines tell that the attribute and method are private and access is not possible from outside the class.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dEEmh5shX-Z-TODtLilN6w.png" /></figure><p><strong>INHERITANCE:-</strong></p><p>The process by which a child class (Subclass) inherits the data from its parent class (Superclass) is known as inheritance. By using inheritance, we can create a class which uses all the properties and behavior of another class.</p><p>The new class is known as a derived class or child class, and the one whose properties are acquired is known as a base class or parent class. It provides the re-usability of the code.</p><p><strong>There are 5 types of Inheritance</strong>:</p><ul><li>Single InHeritance</li><li>Multiple Inheritance</li><li>Multilevel Inheritance</li><li>Hierarchical Inheritance</li><li>Hybrid Inheritance</li></ul><p><strong>EXAMPLE:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tZIsahRjivbqHGH9l-CLVg.png" /></figure><p><strong>POLYMORPHISM:-</strong></p><p>This is a Greek word. If we break the term Polymorphism, we get “poly”-many and “morph”-forms. So Polymorphism means having many forms. In OOP it refers to the functions having the same names but carrying different functionalities.</p><p>Polymorphism is one of the most important concepts applied in Object-Oriented Programming. The ability of an object of a class to behave in a different way when approached with a message or an action is known as polymorphism.</p><p><strong>EXAMPLE:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XHkwtpiBUClfJZUXeJqcbg.png" /></figure><p>When the function is called using the object <em>audi </em>then the function of class <em>Audi</em> is called and when it is called using the object b<em>mw</em> then the function of class <em>BMW</em> is called.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cbe2258068e9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[PYTHON USE OF BREAK,CONTINUE,PASS]]></title>
            <link>https://medium.com/@sharuhaasan/python-use-of-break-continue-pass-92943d58a1?source=rss-39358c914f49------2</link>
            <guid isPermaLink="false">https://medium.com/p/92943d58a1</guid>
            <dc:creator><![CDATA[SHARU HAASAN .T]]></dc:creator>
            <pubDate>Tue, 10 May 2022 09:57:05 GMT</pubDate>
            <atom:updated>2022-05-10T09:57:05.758Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EWSEpotGpr-Ho5OH-bGbTA.jpeg" /></figure><h3>BREAK:- GET ME OUT OF HERE!!</h3><p>The break statement is not new or unique to Python. This command will exit the iteration structure (loop) effectively stopping any further execution from that code block. Use break statements when the loop should not be executed anymore. One of my favorite techniques is breaking out of an infinite loop meant for user input.</p><p>You’ll put the break statement within the block of code under your loop statement, usually after a conditional if statement.</p><p><strong>FLOWCHART:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gFO7re8wkNU3TdDCx0CoWA.jpeg" /></figure><p><strong>EXAMPLE:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Oe4RE6q4zdg5T8Ye3Piy_w.png" /></figure><h3>CONTINUE:-MOVE ALONG. NOTHING TO SEE HERE…</h3><p>Unlike the break statement which kills the current loop, continue ends the current iteration. What’s the difference? The loop will keep executing with a continue statement. Use this keyword to identify exceptions while looping through a set of data. The below example prevents the printing of matching <em>x,y</em> coordinates.</p><p>when the continue statement is executed in the loop, the code inside the loop following the continue statement will be skipped for the current iteration and the next iteration of the loop will begin.</p><p><strong>FLOWCHART:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pHEYZ4G7zuYZOnJLEgFmzw.jpeg" /></figure><p><strong>EXAMPLE:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b8aFtZNU6WAymzg8QhRz5g.png" /></figure><h3>PASS:- COMING SOON!!!</h3><p>Depending on the type of code you’re learning from (step-by-step tutorials vs. finished syntax) your exposure to pass statements may be limited. That’s because it is mostly used as a placeholder. Called a null statement, the pass statement is used to fill out a code block without actually doing anything. Let’s say you’re planning out your program and want to lay out the functions and pseudo-coded control structures.</p><p>The challenge is that Python uses indentations to represent code blocks so the interpreter expects something after certain statements. Use pass to appease the interpreter and allow yourself the freedom to plan and build slowly.Sometimes, pass is used when the user doesn’t want any code to execute. So user can simply place pass where empty code is not allowed, like in loops, function definitions, class definitions, or in if statements. So using pass statement user avoids this error.</p><p><strong>FLOWCHART:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/380/1*JMrPMxoKFFyMUFQi2_09hQ.png" /></figure><p><strong>EXAMPLE:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UT2fmr1-iep5ivqDffMbxQ.png" /></figure><p>The pass statement in Python is used when a statement is required syntactically but you do not want any command or code to execute. It is like null operation, as nothing will happen is it is executed. Pass statement can also be used for writing empty loops. Pass is also used for empty control statement, function and classes.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=92943d58a1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[APPLICATIONS  OF PYTHON]]></title>
            <link>https://medium.com/@sharuhaasan/applications-of-python-63eca5fa9911?source=rss-39358c914f49------2</link>
            <guid isPermaLink="false">https://medium.com/p/63eca5fa9911</guid>
            <dc:creator><![CDATA[SHARU HAASAN .T]]></dc:creator>
            <pubDate>Wed, 04 May 2022 17:03:42 GMT</pubDate>
            <atom:updated>2022-05-05T08:05:52.119Z</atom:updated>
            <content:encoded><![CDATA[<h3>APPLICATIONS OF PYTHON</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*YzlEnureFAemmlyxuAbJGQ.png" /></figure><p><strong>INTRODUCTION TO PYTHON :</strong></p><p>Python is a widely used general-purpose, high level programming language. It was created by Guido van Rossum in 1991 and further developed by the Python Software Foundation. It was designed with an emphasis on code readability, and its syntax allows programmers to express their concepts in fewer lines of code.</p><p><strong>PYTHON APPLICATIONS :</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w2TL3bXoJrsK0K3qU_xBKw.jpeg" /></figure><h3>DATA SCIENCE AND MACHINE LEARNING:</h3><p>Python has become a staple in data science, allowing <a href="https://www.coursera.org/articles/what-does-a-data-analyst-do-a-career-guide">data analysts</a> and other professionals to use the language to conduct complex statistical calculations, create data visualizations, build machine learning algorithms, manipulate and analyze data, and complete other data-related tasks.</p><p>Python can build a wide range of different data visualizations, like line and bar graphs, pie charts, histograms, and 3D plots. Python also has a number of libraries that enable coders to write programs for data analysis and machine learning more quickly and efficiently, like TensorFlow.</p><p><strong>DATABASE ACCESS:</strong></p><p>Thanks to its simplicity, brevity, and large community, Python makes for a great introductory programming language. Applications of Python programming in education has a huge scope as it is a great language to teach in schools or even learn on your own.</p><ul><li>Custom and ODBC interfaces to MySQL, Oracle, PostgreSQL, MS SQL Server, and others. These are freely available for download.</li><li>Object databases like Durus and ZODB</li><li>Standard Database API</li></ul><h3>SOFTWARE TESTING:</h3><p>In software development, Python can aid in tasks like build control, bug tracking, and testing. With Python, software developers can automate testing for new products or features. Some Python tools used for software testing include Green and Requestium.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bkiL-pUHtpGvv8TI.png" /></figure><p><strong>NETWORK PROGRAMMING:</strong></p><ul><li>Twisted Python — A framework for asynchronous network programming. We mentioned it in section 2.</li><li>An easy-to-use socket interface</li></ul><p><strong>CAD APPLIANCES :</strong></p><p>CAD( <strong>Computer-Aided Designing</strong> ) is quite challenging to make as many things have to be taken care of. Python supports a wide range of functionalities for <strong>3D CAD &amp; CAM applications</strong> such as</p><ul><li><strong>AnyCAD</strong></li><li><strong>HeeksPython</strong>,</li><li><strong>PythonOCC</strong></li><li><strong>PythonCAD</strong></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=63eca5fa9911" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>