<?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 Priti Pandey on Medium]]></title>
        <description><![CDATA[Stories by Priti Pandey on Medium]]></description>
        <link>https://medium.com/@pandeypriti015?source=rss-b943706ace2e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Z-19UD8RI6lkZBv3.jpg</url>
            <title>Stories by Priti Pandey on Medium</title>
            <link>https://medium.com/@pandeypriti015?source=rss-b943706ace2e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 05:36:22 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@pandeypriti015/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[Modules Day-14]]></title>
            <link>https://medium.com/@pandeypriti015/modules-day-14-caea3705ab85?source=rss-b943706ace2e------2</link>
            <guid isPermaLink="false">https://medium.com/p/caea3705ab85</guid>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Priti Pandey]]></dc:creator>
            <pubDate>Thu, 26 Sep 2019 18:14:38 GMT</pubDate>
            <atom:updated>2019-09-26T18:14:38.318Z</atom:updated>
            <content:encoded><![CDATA[<p>Modular programming refers to the process of breaking a large,unwieldy programming task into separate,smaller, more manageable sub tasks or modules.</p><p>There are several advantage to modules code in a large application:</p><p>1: Simplicity</p><p>2: Maintainability</p><p>3: Reusability</p><p>4: Scoping</p><p><strong>Python Modules:</strong></p><p>There are three different way to define a module in python:</p><p>1: A modules can be written in Python itself.</p><p>2: A modules can be written in C and loaded dynamically at run time, like the re(regular expression)module.</p><pre>def foo(arg):<br>   print(foo(arg) ={arg})<br>class foo:<br>    pass</pre><p>Objects are define in mod.py</p><p>1: s(string)</p><p>2: a(a list)</p><p>3:foo()(a function)</p><p>4: foo(a class)</p><p>Thank-you</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=caea3705ab85" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Inheritance Day-13]]></title>
            <link>https://medium.com/@pandeypriti015/inheritance-day-13-15a55f7df5c6?source=rss-b943706ace2e------2</link>
            <guid isPermaLink="false">https://medium.com/p/15a55f7df5c6</guid>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Priti Pandey]]></dc:creator>
            <pubDate>Thu, 26 Sep 2019 17:53:05 GMT</pubDate>
            <atom:updated>2019-09-26T17:53:05.157Z</atom:updated>
            <content:encoded><![CDATA[<p>Inheritance is used to indicate that one class will get most or all of its features from a parent class. This happens implicitly whenever you write class.</p><p><strong>The Reason for super():</strong></p><p>Multiple inheritance is when you define a class that inherits from one ore more classes,like this :</p><pre>class SuperFun(Child,Mother):<br>     pass</pre><p>It depicts that,”Making a class named SuperFun that inherits from the classes child and mother at the same time.”</p><p>In this case, whenever you have implicit action on any SuperFun instance,python has to look up the possible function in the class hierarchy for both child and mother,but it need to do this in a consistent order.</p><p><strong>Using super() with init:</strong></p><p>The most common use of super() is actually in init function in base classes. This is only the place where we need to do some things in a child, then complete the initialization in the parent.</p><pre>class Child(Parent):<br>       def __init__(self,family_name):<br>              self.family_name = family_name<br>             super(child,family_name).__init__()  </pre><p>Thank-you</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=15a55f7df5c6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TARZAN SKILLS DAY-3]]></title>
            <link>https://medium.com/@pandeypriti015/tarzan-skills-day-3-23983683de07?source=rss-b943706ace2e------2</link>
            <guid isPermaLink="false">https://medium.com/p/23983683de07</guid>
            <dc:creator><![CDATA[Priti Pandey]]></dc:creator>
            <pubDate>Tue, 24 Sep 2019 18:35:10 GMT</pubDate>
            <atom:updated>2019-09-24T18:35:10.099Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello everyone!!</p><p>Git: How to pull the request from the branch so as to merge that with the master code.</p><h3>Taking User Input</h3><p>Basically, prompting the input in python is very much different than in C. We need not do any circus of declaring the variables using Data types and printing it with respective format specifiers.</p><p>In python, it’s very easy we can just use the variable name and assign it with a value. Depending on the value the variable name in python understands that what type it is.</p><blockquote>Example:first_name = &quot;tarzan skill”</blockquote><p>Here first_name understands that it has been assigned a string type value.</p><blockquote>Ex: age = 21</blockquote><h3>What is Markdown (.md)?</h3><p>A file with the.MD or.MARKDOWN file extension might be a Markdown Documentation file. It’s a plain text file that uses the Markdown language to describe how to convert a text document to HTML. README.md is a common MD file that holds text instructions.</p><p>Thank-you</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=23983683de07" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Comparison Operators]]></title>
            <link>https://medium.com/@pandeypriti015/comparison-operators-fb6662830f5?source=rss-b943706ace2e------2</link>
            <guid isPermaLink="false">https://medium.com/p/fb6662830f5</guid>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Priti Pandey]]></dc:creator>
            <pubDate>Tue, 24 Sep 2019 18:34:37 GMT</pubDate>
            <atom:updated>2019-09-24T18:34:37.811Z</atom:updated>
            <content:encoded><![CDATA[<p>Comparison operators compare two value and evaluate down to single Boolean value.</p><p><strong>if statement:</strong></p><p>if executes a set of statements conditionallyexecute a statement or block of statement.</p><p>Syntax:</p><pre>if expression:<br>   statement_1<br>   statement_2<br>   .....</pre><p><strong>if..else statement</strong></p><pre>syntax:<br>   if expression:<br>      statement_1<br>      statement_2<br>      .....<br>     else:<br>       statement_3<br>       statement_4<br>       ......</pre><p><strong>if .. elif …else statement</strong></p><p>A situation arises when there are several conditions.</p><pre>syntax:<br>  if expression1:<br>     statement-1<br>     statement-2<br>     .....<br> elif expression2:<br>     statement-3<br>      statement-4<br>      ......</pre><p>Thank-you</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fb6662830f5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[For Loops]]></title>
            <link>https://medium.com/@pandeypriti015/for-loops-2685a68e3ea1?source=rss-b943706ace2e------2</link>
            <guid isPermaLink="false">https://medium.com/p/2685a68e3ea1</guid>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Priti Pandey]]></dc:creator>
            <pubDate>Tue, 24 Sep 2019 17:56:37 GMT</pubDate>
            <atom:updated>2019-09-24T17:56:37.416Z</atom:updated>
            <content:encoded><![CDATA[<p>A for loops implements the repeated execution of the code based on a loop counter or loop variable. this means that for the loops are used most often when the number of iterations is known before entering the loop.</p><p><strong>In Python,for loops are constructed like so:</strong></p><pre>for[iteration variable]in[sequence]:<br>   [do something]<br>for i in range(0,5):<br>   print(i)</pre><p><strong>For Loops using range()</strong></p><pre>for i in range(20,25):<br>   print(i)</pre><p>with the three arguments</p><pre>for i in range(0,15,3)<br>   print()</pre><p>we can also use a negative value for our step arguments to iteration backwards,</p><pre>for i in range(100,0,-10):<br>  print(i)</pre><p>Thank-you</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2685a68e3ea1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dictionary]]></title>
            <link>https://medium.com/@pandeypriti015/dictionary-3a51a0b0acf4?source=rss-b943706ace2e------2</link>
            <guid isPermaLink="false">https://medium.com/p/3a51a0b0acf4</guid>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Priti Pandey]]></dc:creator>
            <pubDate>Tue, 24 Sep 2019 17:37:23 GMT</pubDate>
            <atom:updated>2019-09-24T17:37:23.592Z</atom:updated>
            <content:encoded><![CDATA[<p>Dictionary is like a list,but more general.in list,the indices have to be integers;in a dictionary they can be any type.</p><pre>&gt;&gt;&gt;eng2sp = dict()<br>&gt;&gt;&gt;eng2sp<br>{} <br>&gt;&gt;&gt;eng2sp<br>{&#39;one&#39;:&#39;uno&#39;}<br>eng2sp = {&#39;one&#39;:&#39;uno&#39;,&#39;two&#39;:&#39;dos&#39;,&#39;three&#39;:&#39;tres&#39;}<br>&gt;&gt;&gt;eng2sp<br>{&#39;one&#39;:&#39;uno&#39;,&#39;two&#39;:&#39;dos&#39;,&#39;three&#39;:&#39;tres&#39;}<br>&gt;&gt;&gt;eng2sp[&#39;two&#39;]<br>&#39;dos&#39;<br>&gt;&gt;&gt;eng2sp[&#39;four&#39;]<br>keyError:&#39;four&#39;<br>&gt;&gt;&gt;len(eng2sp)<br>3<br>&gt;&gt;&gt;&#39;one&#39;in eng2sp<br>True<br>&gt;&gt;&gt;&#39;uno&#39;in eng2sp<br>False</pre><p><strong>Tuples:</strong></p><p>A tuple is a sequence of value.the value can be any type ,and they are indexed by integers,so in that respect tuples are a lot like lists.</p><pre>&gt;&gt;&gt;t=&#39;a&#39;,&#39;b&#39;,&#39;c&#39;,&#39;d&#39;,&#39;e&#39;<br>&gt;&gt;&gt;t = (&#39;a&#39;,&#39;b&#39;,&#39;c&#39;,&#39;d&#39;,&#39;e&#39;)<br>&gt;&gt;&gt;t1 = &#39;a&#39;,<br>&gt;&gt;&gt;type(t1)<br>&lt;class&#39;tuple&#39;&gt;<br>&gt;&gt;&gt;t2= (&#39;a&#39;)<br>&gt;&gt;&gt;type(t2)<br>&lt;class &#39;str&#39;&gt;<br>&gt;&gt;&gt;t = tuple()<br>&gt;&gt;&gt;t<br>()</pre><p>Thank-you</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3a51a0b0acf4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Regular Expressions]]></title>
            <link>https://medium.com/@pandeypriti015/regular-expressions-37d7a0882bd?source=rss-b943706ace2e------2</link>
            <guid isPermaLink="false">https://medium.com/p/37d7a0882bd</guid>
            <category><![CDATA[regex]]></category>
            <dc:creator><![CDATA[Priti Pandey]]></dc:creator>
            <pubDate>Tue, 24 Sep 2019 16:33:15 GMT</pubDate>
            <atom:updated>2019-09-24T16:33:15.811Z</atom:updated>
            <content:encoded><![CDATA[<p>Regular expressions are text matching pattern described with a formal syntax.</p><p><strong>Modules in Regular expression:</strong></p><p>Python has a module named re to work with Regex.</p><pre>&gt;&gt;&gt; phoneNumRegx = re.comppile(r&#39;\d\d\d-\d\d\d-\d\d\d&#39;)<br>&gt;&gt;&gt; matches = phoneNumRegex.search(&#39;my number is 415-555-4242.&#39;)<br>&gt;&gt;&gt; print(&#39;Phone number  found:&#39; +matches.group())</pre><p><strong>Grouping with Parentheses:</strong></p><p>Say you want to separate the area code from the rest of the phone number. adding parentheses will create groups in the regex:</p><pre>&gt;&gt;&gt;phoneNumRegx = re.comppile(r&#39;(\d\d\d-\d\d\d-\d\d\d)&#39;)<br>&gt;&gt;&gt;matches = phoneNumRegex.search(&#39;my number is 415-555-4242.&#39;)<br>&gt;&gt;&gt;matches.group(1)<br>415<br>&gt;&gt;&gt;matches.group(2)<br>555-4242<br>&gt;&gt;&gt;matches.group(0)<br>415-555-4242<br>&gt;&gt;&gt;matches.group()<br>415-555-4242</pre><p>Thank-you</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=37d7a0882bd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Iterators]]></title>
            <link>https://medium.com/@pandeypriti015/iterators-943dd464f20e?source=rss-b943706ace2e------2</link>
            <guid isPermaLink="false">https://medium.com/p/943dd464f20e</guid>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Priti Pandey]]></dc:creator>
            <pubDate>Tue, 24 Sep 2019 16:09:37 GMT</pubDate>
            <atom:updated>2019-09-24T16:09:37.931Z</atom:updated>
            <content:encoded><![CDATA[<p>Iterators in Python is simple an object that can be iterated upon. An object which will return data,one element at a time.</p><p><strong>Iterating Through an Iterator in Python:</strong></p><p>We use the next()function to manually iterate through all the items of an iterator. when we reach the end and there is no more data to be returned, it will raise stopIleration.</p><pre>&gt;&gt;&gt;evens = [2,4,6,8,10]<br>&gt;&gt;&gt;evenIterator = iter(even)<br>&gt;&gt;&gt;eventIterator <br>&lt;list_iterator object at 0*o5E35410&gt; </pre><p><strong>Generator:</strong></p><p>A python generator is a king of an iterable, like a Python list or a python tuple.it generator for us a sequence of value that we can iterate on.</p><p><strong>The Syntax of Generator:</strong></p><pre>&gt;&gt;&gt; def counter():<br>    i=1<br>    while(i&lt;=10):<br>       yield i<br>       i+=1</pre><p>Then,we iterate on this generator using the for-loop.</p><pre>&gt;&gt;&gt;for i in counter():<br>     print(i)</pre><p>Thank-you</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=943dd464f20e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Object Oriented Programming]]></title>
            <link>https://medium.com/@pandeypriti015/object-oriented-programming-deb85a1acbb2?source=rss-b943706ace2e------2</link>
            <guid isPermaLink="false">https://medium.com/p/deb85a1acbb2</guid>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Priti Pandey]]></dc:creator>
            <pubDate>Tue, 24 Sep 2019 15:46:13 GMT</pubDate>
            <atom:updated>2019-09-24T15:46:13.366Z</atom:updated>
            <content:encoded><![CDATA[<p>The basic idea behind an object-oriented programming is to combine both data and associated procedures into a single unit which operate on the data.Such a unit is called an object.</p><p>An object has two characteristics::</p><p>1: Attributes</p><p>2: Behavior</p><p><strong>Class:</strong></p><p>A class is a blueprint for the object.</p><pre><em>Example: class cat:<br>            pass</em></pre><p><strong>Object:</strong></p><p>Object is simple a collection of data and methods that act on those data.An object is an instantiation of a class.</p><pre><em>Example: obj = cat()</em></pre><p>here,obj is object of class cat.</p><p><strong>Methods:</strong></p><p>Methods are function defined inside the body of a class.</p><pre><em>example: def__init__(self ,name,age):<br>            self.name = name<br>            self.age = age</em></pre><pre><em>         #instance method</em></pre><pre>         def sing(self,song):<br>         return &quot;{}sing{}&quot;.format(self.name,song)<br>         def dance(self):<br>         return&quot;{}is now dancing&quot;.format(self.name)</pre><pre><em>         #instance the object  <br>         Blu = Cat(&quot;Blu&quot;,10)<br>         print(blu.sing(&quot;Happy&quot;))<br>         print(blu.dance())</em></pre><p><strong>Constructors:</strong></p><p>Class function that begins with double underscore(_)are called special function as they have special meaning.</p><pre>class ComplexNumber:<br>def__init__(self,r = 0,i = 0)<br>  self.real = r<br>  self.imag = i</pre><pre>def getData(self):<br>   print(&quot;{0}+{1}j&quot;.format(self.real,self.imag))<br>c1 = ComplexNumber(2,3)<br>c1.getData()</pre><pre>c2= ComplexNumber(5)<br>c2.attr = 10<br>print((c2.real,c2.imag,c2.attr))<br>c1.attr</pre><p><strong>Encapsulation:</strong></p><p>1: Hiding the private details of a class from other objects.</p><p>2: We can restrict access methods and variables.</p><p>3: This prevent data from direct modification which is called encapsulation.</p><p><strong>Inheritance:</strong></p><p>1: A process of using details from a new class without modifying existing class.</p><p>2: The newly formed class is a derived class.</p><p>3: The existing class is a base class.</p><p><strong>Polymorphism:</strong></p><p>1:A concept of using common operation in different ways for different data input.</p><p>2: Polymorphism is an ability to use common interface for multiple from(data types.)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=deb85a1acbb2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Day-5 (Python Functions:)]]></title>
            <link>https://medium.com/@pandeypriti015/day-5-python-functions-7843c6904250?source=rss-b943706ace2e------2</link>
            <guid isPermaLink="false">https://medium.com/p/7843c6904250</guid>
            <dc:creator><![CDATA[Priti Pandey]]></dc:creator>
            <pubDate>Tue, 17 Sep 2019 14:43:41 GMT</pubDate>
            <atom:updated>2019-09-17T14:43:41.496Z</atom:updated>
            <content:encoded><![CDATA[<p>A function is a block of code which only runs when it is called.you can pass data,know as parameters,into a function.A function can return data as a result.</p><p><em>Syntax for define function:def function_name(parameters):</em></p><p><strong>Python String Slicing:</strong></p><p>Like other programming languages, it’s possible to access individual characters of a string by using array-like indexing syntax. In this we can access each and every element of string through their index number and the indexing starts from 0. Python does index out of string slicing:variable_namebound checking.</p><p><em>syntax for string slicing:</em></p><p><em>variable_name[start index:end index:step]</em></p><p><strong>Quantitative aptitude:</strong></p><p>This plays a very big role when it comes to get a job for fresher so concentrate on this is very important. learnt problem solving on profit and loss.</p><p>Thank-you</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7843c6904250" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>