<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>python &amp; operator - Wikitechy</title>
	<atom:link href="https://www.wikitechy.com/interview-questions/tag/python-operator/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.wikitechy.com/interview-questions/tag/python-operator/</link>
	<description>Interview Questions</description>
	<lastBuildDate>Wed, 17 Aug 2022 11:07:01 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://www.wikitechy.com/interview-questions/wp-content/uploads/2025/10/cropped-wikitechy-icon-32x32.png</url>
	<title>python &amp; operator - Wikitechy</title>
	<link>https://www.wikitechy.com/interview-questions/tag/python-operator/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>What is an operator in Python ?</title>
		<link>https://www.wikitechy.com/interview-questions/python/what-is-an-operator-in-python/</link>
					<comments>https://www.wikitechy.com/interview-questions/python/what-is-an-operator-in-python/#respond</comments>
		
		<dc:creator><![CDATA[webmaster]]></dc:creator>
		<pubDate>Wed, 17 Aug 2022 11:05:32 +0000</pubDate>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[* operator in python list]]></category>
		<category><![CDATA[arithmetic operators in python]]></category>
		<category><![CDATA[assignment operator in python]]></category>
		<category><![CDATA[bitwise operator in python]]></category>
		<category><![CDATA[comparison operators in python]]></category>
		<category><![CDATA[does python have operator]]></category>
		<category><![CDATA[identity operators in python]]></category>
		<category><![CDATA[is = an operator in python]]></category>
		<category><![CDATA[logical operators in python]]></category>
		<category><![CDATA[python // operator vs /]]></category>
		<category><![CDATA[python & operator]]></category>
		<category><![CDATA[symbol in python]]></category>
		<category><![CDATA[what is an assignment operator in python]]></category>
		<category><![CDATA[what is an identity operator in python]]></category>
		<category><![CDATA[what is an operator in python]]></category>
		<category><![CDATA[what is not an arithmetic operator in python]]></category>
		<category><![CDATA[what type is an operator in python]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=4732</guid>

					<description><![CDATA[In python operators are generally used to perform operations on variables and values. In specific programming language operators are the pillars of a program on which the logic is built. Python operator consists of different types, they are Arithmetic operators Comparison operators Assignment operators Logical operators Bitwise operators Membership operators Identity operators Arithmetic operators Arithmetic [&#8230;]]]></description>
										<content:encoded><![CDATA[<ul>
<li>In python operators are generally used to perform operations on variables and values.</li>
<li>In specific programming language operators are the pillars of a program on which the logic is built.</li>
<li>Python operator consists of different types, they are
<ul>
<li>Arithmetic operators</li>
<li>Comparison operators</li>
<li>Assignment operators</li>
<li>Logical operators</li>
<li>Bitwise operators</li>
<li>Membership operators</li>
<li>Identity operators</li>
</ul>
</li>
</ul>
<p><img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-4733 aligncenter" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/python-operators.png" alt="" width="1460" height="602" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/python-operators.png 1460w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/python-operators-300x124.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/python-operators-1024x422.png 1024w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/python-operators-768x317.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/python-operators-390x161.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/python-operators-820x338.png 820w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/python-operators-1180x487.png 1180w" sizes="(max-width: 1460px) 100vw, 1460px" /></p>
<h2 id="arithmetic-operators">Arithmetic operators</h2>
<ul>
<li>Arithmetic operators are used to perform arithmetic operations between two operands and it includes + (addition), – (subtraction), * (multiplication), / (divide), % (reminder), // (floor division) and exponent (**) operators.
<ul style="text-align: justify;">
<li><strong>+ (addition)</strong> operator is used to add two operands.</li>
<li><strong>– (Subtraction)</strong> operator is used to subtract the second operand from the first operand then if the first operand is less than the second operand, the value results negative.</li>
<li><strong>/ (divide)</strong> returns the quotient after dividing the first operand by the second operand.</li>
<li><strong>* (multiplication)</strong> is used to multiply one operand with the other.</li>
<li><strong>% (reminder) </strong>returns the reminder after dividing the first operand by the second operand.</li>
<li><strong>**(Exponent)</strong> is an exponent operator represented as it calculates the first operand power to the second operand.</li>
<li><strong>// (Floor division)</strong> operator gives the floor value of the quotient produced by dividing the two operands.</li>
</ul>
</li>
</ul>
<h2 id="comparison-operators">Comparison operators</h2>
<ul>
<li>It is used to comparing the value of the two operands and returns Boolean true or false accordingly.
<ul style="text-align: justify;">
<li><strong>(= =)</strong> If the value of two operands is equal, then the condition becomes true.</li>
<li><strong>(! =)</strong> if the value of two operands is not equal, then the condition becomes true.</li>
<li><strong>(< =)</strong> If the first operand is less than or equal to the second operand, then the condition becomes true.</li>
<li><strong>(> =)</strong> if the first operand is greater than or equal to the second operand, then the condition becomes true.</li>
<li><strong>(>)</strong> If the first operand is greater than the second operand, then the condition becomes true.</li>
<li><strong>(<)</strong> If the first operand is less than the second operand, then the condition becomes true.</li>
</ul>
</li>
</ul>
<h2 id="assignment-operators">Assignment operators</h2>
<ul>
<li>It is used to assign the value of the right expression to the left operand.
<ul style="text-align: justify;">
<li><strong>(=)</strong> It assigns the value of the right expression to the left operand.</li>
<li><strong>(+=)</strong> It increases the value of the left operand by the value of the right operand and assigns the modified value back to left operand.</li>
<li><strong>(-=)</strong> It increases the value of the left operand by the value of the right operand and assigns the modified value back to left operand.</li>
<li><strong>(*=)</strong> It multiplies the value of the left operand by the value of the right operand and assigns the modified value back to then the left operand.</li>
<li><strong>(%=)</strong> It divides the value of the left operand by the value of the right operand and assigns the reminder back to the left operand.</li>
<li><strong>(**=)</strong> a**=b will be equal to a=a**b.</li>
<li><strong>(//=)</strong> A//=b will be equal to a = a// b, for example, if a = 4, b = 3, a//=b will assign 4//3 = 1 to a.</li>
</ul>
</li>
</ul>
<h2 id="logical-operators">Logical operators</h2>
<ul>
<li>In expression evaluation logical operators are used primarily to make a decision.
<ul style="text-align: justify;">
<li><strong>“and”</strong> operator is used when both the expression is true, then the condition will be true. If a and b are the two expressions, a → true, b → true => a and b → true.</li>
<li><strong>“or”</strong> operator is used when one of the expressions is true, then the condition will be true. In this a and b are the two expressions, a → true, b → false => a or b → true.</li>
<li><strong>“not”</strong> operator is used when an expression a is true, then not (a) will be false and vice versa.</li>
</ul>
</li>
</ul>
<h2 id="membership-operators">Membership operators</h2>
<ul>
<li>It is used to check the membership of value inside a python data structure and if the value is present in the data structure, then the resulting value is true otherwise it returns false.
<ul style="text-align: justify;">
<li><strong>“in”</strong> operator is evaluated to be true if the first operand is found in the second operand (list, tuple, or dictionary).</li>
<li><strong>“Not in”</strong> operator is evaluated to be true if the first operand is not found in the second operand (list, tuple, or dictionary).</li>
</ul>
</li>
</ul>
<h2 id="identity-operators">Identity operators</h2>
<ul>
<li>It is used to decide whether an element certain class or type.
<ul style="text-align: justify;">
<li><strong>“is”</strong> operator is evaluated to be true if the reference present at both sides point to the same object.</li>
<li><strong>“Is not”</strong> is evaluated to be true if the reference present at both sides do not point to the same object.</li>
</ul>
</li>
</ul>
<h2 id="bitwise-operators">Bitwise operators</h2>
<ul>
<li>These operators perform bit by bit operation on the values of the two operands.
<ul style="text-align: justify;">
<li><strong>“& (binary and)”</strong> is used when both the bits at the same place in two operands are 1, then 1 is copied to the result. Otherwise, 0 is copied.</li>
<li><strong>“| (binary or)”</strong> operator is used where the resulting bit will be 0 if both the bits are zero; otherwise, the resulting bit will be 1.</li>
<li><strong>“^ (binary xor)”</strong> operator is used where the resulting bit will be 1 if both the bits are different; otherwise, the resulting bit will be 0.</li>
<li><strong>“~(negation)”</strong> operator calculates the negation of each bit of the operand, i.e., if the bit is 0, the resulting bit will be 1 and vice versa.</li>
<li><strong>“<< (left shift)”</strong> operator is used where the left operand value is moved left by the number of bits present in the right operand.</li>
<li><strong>“>>(right shift)”</strong> operator is used where the left operand value is moved right by the number of bits present in the right operand.</li>
</ul>
</li>
</ul>
<p> </p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/python/what-is-an-operator-in-python/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is python unsigned right shift (&gt;&gt;&gt;) ?</title>
		<link>https://www.wikitechy.com/interview-questions/python/what-is-python-unsigned-right-shift/</link>
					<comments>https://www.wikitechy.com/interview-questions/python/what-is-python-unsigned-right-shift/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Sun, 18 Jul 2021 14:53:44 +0000</pubDate>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[Accenture interview questions and answers]]></category>
		<category><![CDATA[Applied Materials interview questions and answers]]></category>
		<category><![CDATA[arithmetic shift python]]></category>
		<category><![CDATA[Atos interview questions and answers]]></category>
		<category><![CDATA[bitwise operators examples python]]></category>
		<category><![CDATA[Capgemini interview questions and answers]]></category>
		<category><![CDATA[CASTING NETWORKS INDIA PVT LIMITED interview questions and answers]]></category>
		<category><![CDATA[CGI Group Inc interview questions and answers]]></category>
		<category><![CDATA[Chetu interview questions and answers]]></category>
		<category><![CDATA[Collabera Technologies interview questions and answers]]></category>
		<category><![CDATA[Dell International Services India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Flipkart interview questions and answers]]></category>
		<category><![CDATA[Genpact interview questions and answers]]></category>
		<category><![CDATA[IBM interview questions and answers]]></category>
		<category><![CDATA[Indecomm Global Services interview questions and answers]]></category>
		<category><![CDATA[Infosys Technologies interview questions and answers]]></category>
		<category><![CDATA[L&T Infotech interview questions and answers]]></category>
		<category><![CDATA[Mavenir interview questions and answers]]></category>
		<category><![CDATA[Mphasis interview questions and answers]]></category>
		<category><![CDATA[NetApp interview questions and answers]]></category>
		<category><![CDATA[Oracle Corporation interview questions and answers]]></category>
		<category><![CDATA[PeopleStrong interview questions and answers]]></category>
		<category><![CDATA[Persistent Systems interview questions and answers]]></category>
		<category><![CDATA[Prokarma Softech Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[python & operator]]></category>
		<category><![CDATA[python binary number]]></category>
		<category><![CDATA[python bit flags]]></category>
		<category><![CDATA[python bitwise operators]]></category>
		<category><![CDATA[python data science interview questions]]></category>
		<category><![CDATA[python int to binary]]></category>
		<category><![CDATA[python interview questions and answers for testers]]></category>
		<category><![CDATA[python programming questions]]></category>
		<category><![CDATA[python telephonic interview questions]]></category>
		<category><![CDATA[python unsigned int]]></category>
		<category><![CDATA[python unsigned intpython & operator]]></category>
		<category><![CDATA[Reliance Industries Ltd interview questions and answers]]></category>
		<category><![CDATA[SAP Labs India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Tech Mahindra interview questions and answers]]></category>
		<category><![CDATA[UnitedHealth Group interview questions and answers]]></category>
		<category><![CDATA[Virtusa Consulting Services Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Wells Fargo interview questions and answers]]></category>
		<category><![CDATA[Xoriant Soluti interview questions and answers]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=877</guid>

					<description><![CDATA[Answer : The symbol >>> is used to point out that what’s coming after is Python Code.....]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<h2 id="used-in-python" class="color-purple" style="text-align: justify;">>>> used in python</h2>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>The symbol >>> is used to point out that what’s coming after is Python Code. It’s also known as Python Prompt.</li>
<li>Likewise this is the prompt that appears in the Python Console interactive shell when you type python in the terminal. It indicates that you are in the python interactive shell and prepared to type python code.</li>
</ul>
</div>
</div>
<div class="text-center row" style="text-align: justify;"><span style="color: #000000; font-family: inherit; font-size: 2rem;">Example :</span></div>
<div class="CodeContent" style="text-align: justify;">
<div class="hddn">
<figure class="highlight">
<pre><code id="code1" class="python hljs bash" data-lang="python"><span class="nt"><strong>>>> <span class="hljs-built_in">print</span>(<span class="hljs-string">"Welcome to Wikitechy Website"</span>)
<span class="hljs-string">"Welcome to Wikitechy Website"</span></strong></span></code></pre>
</figure>
</div>
</div>
<p style="text-align: justify;">This means that the command is print(“Welcome to Wikitechy Website”).</p>
<div class="subheading" style="text-align: justify;">
<h2 id="output">Output:</h2>
</div>
<div class="Output">
<div class="hddn">
<figure class="highlight" style="text-align: justify;">
<pre><strong><code class="python hljs" data-lang="python"><span class="nt">“Welcome to Wikitechy Website”</span></code></strong></pre>
</figure>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/python/what-is-python-unsigned-right-shift/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
