<?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 telephonic interview questions - Wikitechy</title>
	<atom:link href="https://www.wikitechy.com/interview-questions/tag/python-telephonic-interview-questions/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.wikitechy.com/interview-questions/tag/python-telephonic-interview-questions/</link>
	<description>Interview Questions</description>
	<lastBuildDate>Mon, 20 Sep 2021 07:12:19 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://www.wikitechy.com/interview-questions/wp-content/uploads/2025/10/cropped-wikitechy-icon-32x32.png</url>
	<title>python telephonic interview questions - Wikitechy</title>
	<link>https://www.wikitechy.com/interview-questions/tag/python-telephonic-interview-questions/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>What is the Difference between C, C++, Java and Python ?</title>
		<link>https://www.wikitechy.com/interview-questions/python/what-is-the-difference-between-c-cpp-java-and-python/</link>
					<comments>https://www.wikitechy.com/interview-questions/python/what-is-the-difference-between-c-cpp-java-and-python/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Sun, 18 Jul 2021 15:18:47 +0000</pubDate>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[Accenture interview questions and answers]]></category>
		<category><![CDATA[advantages of python over java]]></category>
		<category><![CDATA[advantages of python over other languages]]></category>
		<category><![CDATA[Applied Materials interview questions and answers]]></category>
		<category><![CDATA[Atos interview questions and answers]]></category>
		<category><![CDATA[c java python]]></category>
		<category><![CDATA[c vs python for beginners]]></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[convert python code to java]]></category>
		<category><![CDATA[convert python to java]]></category>
		<category><![CDATA[Dell International Services India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[difference between c++ and python in tabular form]]></category>
		<category><![CDATA[difference between java and python]]></category>
		<category><![CDATA[difference between python and c language]]></category>
		<category><![CDATA[difference between python and java]]></category>
		<category><![CDATA[disadvantages of python]]></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[java python]]></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 and java]]></category>
		<category><![CDATA[python data science interview questions]]></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 vs c]]></category>
		<category><![CDATA[python vs c++ comparison]]></category>
		<category><![CDATA[python vs c++ syntax]]></category>
		<category><![CDATA[python vs java performance]]></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[what can python be used for]]></category>
		<category><![CDATA[Xoriant Soluti interview questions and answers]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=895</guid>

					<description><![CDATA[Answer : Developed Year,1972,1979,1991,1991]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<h2 id="difference-between-c-c-java-and-python" class="color-purple">Difference between c, c++, java and Python</h2>
</div>
</div>
<table class="table-bordered table-striped table table-responsive">
<tbody>
<tr>
<th>Aspects</th>
<th>C</th>
<th>C++</th>
<th>Java</th>
<th>Python</th>
</tr>
<tr>
<td class="text-leftalign">Developed Year</td>
<td class="text-leftalign">1972</td>
<td class="text-leftalign">1979</td>
<td class="text-leftalign">1991</td>
<td class="text-leftalign">1991</td>
</tr>
<tr>
<td class="text-leftalign">Developed By</td>
<td class="text-leftalign">Dennis Ritchie</td>
<td class="text-leftalign">Bjarne Stroustrup</td>
<td class="text-leftalign">James Gosling</td>
<td class="text-leftalign">Guido van Rossum</td>
</tr>
<tr>
<td class="text-leftalign">Successor of</td>
<td class="text-leftalign">BCPL</td>
<td class="text-leftalign">C</td>
<td class="text-leftalign">C(Syntax)<br />
&amp;<br />
C++ (Structure)</td>
<td class="text-leftalign">ABC<br />
language</td>
</tr>
<tr>
<td class="text-leftalign">Paradigms</td>
<td class="text-leftalign">Procedural</td>
<td class="text-leftalign">Object Oriented</td>
<td class="text-leftalign">Object Oriented</td>
<td class="text-leftalign">Multi-Paradigm</td>
</tr>
<tr>
<td class="text-leftalign">Platform<br />
Dependency</td>
<td class="text-leftalign">Dependent</td>
<td class="text-leftalign">Dependent</td>
<td class="text-leftalign">Independent</td>
<td class="text-leftalign">Independent</td>
</tr>
<tr>
<td class="text-leftalign">Keywords</td>
<td class="text-leftalign">32</td>
<td class="text-leftalign">63</td>
<td class="text-leftalign">50 defined<br />
(goto,<br />
const unusable)</td>
<td class="text-leftalign">33</td>
</tr>
<tr>
<td class="text-leftalign">Datatypes :<br />
union, structure</td>
<td class="text-leftalign">Supported</td>
<td class="text-leftalign">Supported</td>
<td class="text-leftalign">Not<br />
Supported</td>
<td class="text-leftalign">Supported</td>
</tr>
<tr>
<td class="text-leftalign">Pre-processor<br />
directives</td>
<td class="text-leftalign">Supported<br />
(#include, #define)</td>
<td class="text-leftalign">Supported<br />
(#include, #define)</td>
<td class="text-leftalign">Not<br />
Supported</td>
<td class="text-leftalign">Not<br />
Supported</td>
</tr>
<tr>
<td class="text-leftalign">Header files</td>
<td class="text-leftalign">Supported</td>
<td class="text-leftalign">Supported</td>
<td class="text-leftalign">Use Packages<br />
(import)</td>
<td class="text-leftalign">Use Packages<br />
(import)</td>
</tr>
<tr>
<td class="text-leftalign">Inheritance</td>
<td class="text-leftalign">No<br />
Inheritance</td>
<td class="text-leftalign">Supported</td>
<td class="text-leftalign">Multiple<br />
Inheritance<br />
not<br />
Supported</td>
<td class="text-leftalign">Supported</td>
</tr>
<tr>
<td class="text-leftalign">Overloading</td>
<td class="text-leftalign">No<br />
Overloading</td>
<td class="text-leftalign">Supported</td>
<td class="text-leftalign">Operator<br />
Overloading<br />
not Supported</td>
<td class="text-leftalign">Operator<br />
Overloading<br />
not Supported</td>
</tr>
<tr>
<td class="text-leftalign">Pointers</td>
<td class="text-leftalign">Supported</td>
<td class="text-leftalign">Supported</td>
<td class="text-leftalign">No Pointers</td>
<td class="text-leftalign">No Pointers</td>
</tr>
<tr>
<td class="text-leftalign">Code<br />
Translation</td>
<td class="text-leftalign">Compiled</td>
<td class="text-leftalign">Compiled</td>
<td class="text-leftalign">Interpreted</td>
<td class="text-leftalign">Interpreted</td>
</tr>
<tr>
<td class="text-leftalign">Storage<br />
Allocation</td>
<td class="text-leftalign">Uses malloc,<br />
calloc</td>
<td class="text-leftalign">Uses new ,<br />
delete</td>
<td class="text-leftalign">uses garbage<br />
collector</td>
<td class="text-leftalign">uses garbage<br />
collector</td>
</tr>
<tr>
<td class="text-leftalign">Multi-threading<br />
and<br />
Interfaces</td>
<td class="text-leftalign">Not<br />
Supported</td>
<td class="text-leftalign">Not<br />
Supported</td>
<td class="text-leftalign">Supported</td>
<td class="text-leftalign">Supported</td>
</tr>
<tr>
<td class="text-leftalign">Exception<br />
Handling</td>
<td class="text-leftalign">No Exception<br />
handling</td>
<td class="text-leftalign">Supported</td>
<td class="text-leftalign">Supported</td>
<td class="text-leftalign">Supported</td>
</tr>
<tr>
<td class="text-leftalign">Templates</td>
<td class="text-leftalign">Not<br />
Supported</td>
<td class="text-leftalign">Supported</td>
<td class="text-leftalign">Not<br />
Supported</td>
<td class="text-leftalign">Supported</td>
</tr>
<tr>
<td class="text-leftalign">Storage class:<br />
auto, extern</td>
<td class="text-leftalign">Supported</td>
<td class="text-leftalign">Supported</td>
<td class="text-leftalign">Not<br />
Supported</td>
<td class="text-leftalign">Not<br />
Supported</td>
</tr>
<tr>
<td class="text-leftalign">Destructors</td>
<td class="text-leftalign">No<br />
Constructor or Destructor</td>
<td class="text-leftalign">Supported</td>
<td class="text-leftalign">Not<br />
Supported</td>
<td class="text-leftalign">Not<br />
Supported</td>
</tr>
<tr>
<td class="text-leftalign">Database<br />
Connectivity</td>
<td class="text-leftalign">Not<br />
Supported</td>
<td class="text-leftalign">Not<br />
Supported</td>
<td class="text-leftalign">Supported</td>
<td class="text-leftalign">Supported</td>
</tr>
</tbody>
</table>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/python/what-is-the-difference-between-c-cpp-java-and-python/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is the Difference Between Python and Scala ?</title>
		<link>https://www.wikitechy.com/interview-questions/python/what-is-the-difference-between-python-and-scala/</link>
					<comments>https://www.wikitechy.com/interview-questions/python/what-is-the-difference-between-python-and-scala/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Sun, 18 Jul 2021 15:05:01 +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[Atos interview questions and answers]]></category>
		<category><![CDATA[call python from scala spark]]></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 data science interview questions]]></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 to scala converter]]></category>
		<category><![CDATA[python vs scala performance]]></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[scala for python developers]]></category>
		<category><![CDATA[scala for python programmers]]></category>
		<category><![CDATA[scala python comparison]]></category>
		<category><![CDATA[scala python integration]]></category>
		<category><![CDATA[scala to python]]></category>
		<category><![CDATA[scala to python converter]]></category>
		<category><![CDATA[scala vs python for data science]]></category>
		<category><![CDATA[scala vs python for machine learning]]></category>
		<category><![CDATA[scala vs python for spark]]></category>
		<category><![CDATA[scala vs python performance]]></category>
		<category><![CDATA[spark pipe python]]></category>
		<category><![CDATA[spark python vs scala]]></category>
		<category><![CDATA[spark python vs scala performance]]></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[what is spark and scala]]></category>
		<category><![CDATA[which is easier scala or python]]></category>
		<category><![CDATA[Xoriant Soluti interview questions and answers]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=881</guid>

					<description><![CDATA[Answer : Python is both object-oriented and functional.]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<h2 id="difference-between-python-and-scala" class="color-purple">Difference Between Python and Scala</h2>
</div>
</div>
<table class="table-bordered table-striped table table-responsive">
<tbody>
<tr>
<th>Python</th>
<th>Scala</th>
</tr>
<tr>
<td class="text-leftalign">Python is both object-oriented and functional.<br />
It blends a number of modern language features,<br />
while maintaining close compatibility<br />
with C/C++.</td>
<td class="text-leftalign">Scala is a programming language. It is both<br />
object-oriented (think inheritance, methods, &#8230;)<br />
and functional (think closures). It blends a number of<br />
modern language features, while maintaining<br />
close compatibility with Java.</td>
</tr>
<tr>
<td class="text-leftalign">Its Supports oops and Multi-paradigm</td>
<td class="text-leftalign">Its Support oops,Multi-Paradigm,and Functions</td>
</tr>
<tr>
<td class="text-leftalign">Image processing is from pillow</td>
<td class="text-leftalign">Image processing is from Java</td>
</tr>
<tr>
<td class="text-leftalign">It support templates like</p>
<p>Jinja<br />
Genshi<br />
Chameleon</td>
<td class="text-leftalign">It support templates like</p>
<p>HTML5<br />
Jade<br />
JSP<br />
JavaScript</td>
</tr>
<tr>
<td class="text-leftalign">Its has Dynamic Typing</td>
<td class="text-leftalign">Its has no Dynamic Typing</td>
</tr>
<tr>
<td class="text-leftalign">It does not has language Integrated Query</td>
<td class="text-leftalign">It has language Integrated Query</td>
</tr>
<tr>
<td class="text-leftalign">In Python Partial Class are supported</td>
<td class="text-leftalign">In Scala Partial Class are not supported</td>
</tr>
<tr>
<td class="text-leftalign">It&#8217;s not Value type variables passing as reference</td>
<td class="text-leftalign">It has Value type variables passing as reference</td>
</tr>
</tbody>
</table>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/python/what-is-the-difference-between-python-and-scala/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is Python Networking Programming ?</title>
		<link>https://www.wikitechy.com/interview-questions/python/what-is-python-networking-programming/</link>
					<comments>https://www.wikitechy.com/interview-questions/python/what-is-python-networking-programming/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Sun, 18 Jul 2021 15:02:12 +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[Atos interview questions and answers]]></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[client server program in python using socket]]></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[learning python network programming]]></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[network automation python]]></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 client server chat program]]></category>
		<category><![CDATA[python data science interview questions]]></category>
		<category><![CDATA[python interview questions and answers for testers]]></category>
		<category><![CDATA[python network library]]></category>
		<category><![CDATA[python network module]]></category>
		<category><![CDATA[python network programming]]></category>
		<category><![CDATA[python network programming examples]]></category>
		<category><![CDATA[python network scripts]]></category>
		<category><![CDATA[python networking]]></category>
		<category><![CDATA[python networking projects]]></category>
		<category><![CDATA[python programming questions]]></category>
		<category><![CDATA[python socket programming example]]></category>
		<category><![CDATA[python socket send string]]></category>
		<category><![CDATA[python socket server multiple clients]]></category>
		<category><![CDATA[python telephonic interview questions]]></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[send image over socket python]]></category>
		<category><![CDATA[socket programming in python for file transfer]]></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=880</guid>

					<description><![CDATA[Answer : The standard library of python supports network protocols....]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<h2 id="python-networking-programming" class="color-purple" style="text-align: justify;">Python Networking Programming</h2>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>The standard library of python supports network protocols, encoding as well as decoding of data (information) and also other networking concepts then it is less complex to implement network codes in Python better than C++.</li>
<li>The Python gives two levels of access to network services. First is low level, you will get the fundamental socket support in the basic operating system (OS) that allows you to execute clients and servers for connection-oriented as well as connectionless protocols.</li>
<li>Another one is high level; python are having libraries that give higher-level access to particular application-level network protocols like FTP, HTTP, etc.</li>
<li>By using sockets in the code to connect to a remote machine or loopback address (127.0.01) is python network programming.</li>
</ul>
</div>
</div>
<div class="text-center row" style="text-align: justify;">
<div class="col-sm-12">
<div id="bsa-zone_1590522538159-8_123456"><img fetchpriority="high" decoding="async" class="alignnone size-medium aligncenter" src="https://cdn.wikitechy.com/interview-questions/python/python-networking.png" alt="Python Networking" width="480" height="360" /></div>
</div>
</div>
<div class="ImageContent" style="text-align: justify;">
<div class="hddn"><span style="color: #000000; font-family: inherit; font-size: 2rem;">Example:</span></div>
</div>
<div class="subheading" style="text-align: justify;">
<div class="code-embed-wrapper"> <div class="code-embed-infos"> </div> <pre class="language-python code-embed-pre line-numbers"  data-start="1" data-line-offset="0"><code class="language-python code-embed-code">import socket<br/>import sys<br/><br/>HOST = &#039;localhost&#039; <br/>PORT = 8888 #any port <br/>s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)<br/>print &#039;Socket created&#039;<br/>#putting s.bind() in try because in case if the port is already being used it will through an exception <br/>try:<br/>    s.bind((HOST, PORT))<br/>except socket.error as msg:<br/>    print &#039;Bind failed. Error Code : &#039; + str(msg[0]) + &#039; Message &#039; + msg[1]<br/>    sys.exit()</code></pre> </div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/python/what-is-python-networking-programming/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is Duck Typing in Python ?</title>
		<link>https://www.wikitechy.com/interview-questions/python/what-is-duck-typing-in-python/</link>
					<comments>https://www.wikitechy.com/interview-questions/python/what-is-duck-typing-in-python/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Sun, 18 Jul 2021 14:59:28 +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[Atos interview questions and answers]]></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[Duck typing]]></category>
		<category><![CDATA[Duck Typing in Python]]></category>
		<category><![CDATA[duck typing vs dynamic typing]]></category>
		<category><![CDATA[duck typing vs inheritance]]></category>
		<category><![CDATA[dynamic typing in python]]></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 data science interview questions]]></category>
		<category><![CDATA[python duck typing]]></category>
		<category><![CDATA[Python duck typing (or automatic interfaces)]]></category>
		<category><![CDATA[python interview questions and answers for testers]]></category>
		<category><![CDATA[python optional typing]]></category>
		<category><![CDATA[python programming questions]]></category>
		<category><![CDATA[python telephonic interview questions]]></category>
		<category><![CDATA[python typing]]></category>
		<category><![CDATA[python typing module]]></category>
		<category><![CDATA[python uses duck typing]]></category>
		<category><![CDATA[python uses which typing]]></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[What is “duck typing”?]]></category>
		<category><![CDATA[What Is Duck Typing in Computer Programming?]]></category>
		<category><![CDATA[What is Duck typing in Python?]]></category>
		<category><![CDATA[what is dynamic typing in python]]></category>
		<category><![CDATA[Xoriant Soluti interview questions and answers]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=879</guid>

					<description><![CDATA[Answer : Duck typing is the “type” of the object is a matter of concern only......]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<h2 id="duck-typing-in-python" class="color-purple" style="text-align: justify;">Duck Typing in Python</h2>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>Duck typing is the “type” of the object is a matter of concern only at runtime and you don’t require mentioning the type of the object before you execute any kind of operation on that object.</li>
<li>Parts of the standard library in python suppose to use I/O like objects with read or write methods, yet you will pass anything that executes these, without having to inherit from anything.</li>
<li>There is another idea in typing lark which is a characteristics of dynamic languages. This is known as duck typing.</li>
<li>Example, in a statically typed language we have a concept of including. A few types of object can be included &#8211; typically only to objects of the similar type. Although most languages will let you a chance to add an integer to a floating point number &#8211; resulting in a floating point number. Attempt to include different types of objects together and the compiler will tell you that you&#8217;re not permitted.</li>
<li>In Python we have to permit the object to describe what it to be included. The expression 4 + 4 is syntactic sugar for calling the __add__ method of the integer type. It is similar as calling int.__add__(4, 4). It means that if you define a __add__ method for one of your classes you will make all sorts of things happen when you include instances of them together.</li>
<li>Many of Python syntax is sugar for underlying methods especially in data access. Accessing members of sequence type objects as well as mapping type objects is complete by using the __getitem__ method of these objects.</li>
</ul>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn"></div>
</div>
<div class="CodeContent" style="text-align: justify;">
<div class="hddn">
<figure class="highlight">
<pre><strong><code id="code1" class="python hljs bash" data-lang="python"><span class="nt">a = [<span class="hljs-number">0</span>,<span class="hljs-number">1</span> <span class="hljs-number">2</span>, <span class="hljs-number">3</span>]
<span class="hljs-built_in">print</span> a[<span class="hljs-number">0</span>]
<span class="hljs-number">0</span>
b = {<span class="hljs-string">'a'</span>: <span class="hljs-number">0</span>, <span class="hljs-string">'b'</span>: <span class="hljs-number">1</span>}
<span class="hljs-built_in">print</span> b[<span class="hljs-string">'a'</span>]
<span class="hljs-number">0</span></span></code></strong></pre>
</figure>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>The above code is exactly the same as :</li>
</ul>
</div>
</div>
<div class="CodeContent">
<div class="hddn">
<figure class="highlight" style="text-align: justify;">
<pre><code id="code2" class="python hljs bash" data-lang="python"><span class="nt"><strong>a =  [<span class="hljs-number">0</span>,<span class="hljs-number">1</span> <span class="hljs-number">2</span>, <span class="hljs-number">3</span>]
<span class="hljs-built_in">print</span> list.__getitem__(a, <span class="hljs-number">0</span>)
<span class="hljs-number">0</span>
b = {<span class="hljs-string">'a'</span>: <span class="hljs-number">0</span>, <span class="hljs-string">'b'</span>: <span class="hljs-number">1</span>}
<span class="hljs-built_in">print</span> dict._getitem__(b, <span class="hljs-string">'a'</span>)
<span class="hljs-number">0</span></strong></span></code></pre>
</figure>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/python/what-is-duck-typing-in-python/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is Double Asterisk (**) in python ?</title>
		<link>https://www.wikitechy.com/interview-questions/python/what-is-double-asterisk-in-python/</link>
					<comments>https://www.wikitechy.com/interview-questions/python/what-is-double-asterisk-in-python/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Sun, 18 Jul 2021 14:56:56 +0000</pubDate>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[* in python arguments]]></category>
		<category><![CDATA[Accenture interview questions and answers]]></category>
		<category><![CDATA[Applied Materials interview questions and answers]]></category>
		<category><![CDATA[Atos interview questions and answers]]></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[double asterisk in python]]></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 asterisk argument]]></category>
		<category><![CDATA[python asterisk list]]></category>
		<category><![CDATA[python data science interview questions]]></category>
		<category><![CDATA[python double asterisk math]]></category>
		<category><![CDATA[python interview questions and answers for testers]]></category>
		<category><![CDATA[python multiple arguments command line]]></category>
		<category><![CDATA[python operators]]></category>
		<category><![CDATA[python pass args and kwargs to another function]]></category>
		<category><![CDATA[python programming questions]]></category>
		<category><![CDATA[python telephonic interview questions]]></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=878</guid>

					<description><![CDATA[Answer : In Python ** is an exponential operator......]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<h2 id="in-python" class="color-purple" style="text-align: justify;">** in python</h2>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>In Python ** is an exponential operator.The double asterisk form of **kwargs is used to pass a keyword, variable-length argument dictionary to a function. Again, the two asterisks (**) are the important element here, as the word kwargs is conventionally used, though not enforced by the language.</li>
<li>Like *args, **kwargs get however several arguments you would like to supply into it. Though **kwargs differs from *args in that you will need to assign keywords.</li>
</ul>
</div>
</div>
<div class="text-center row" style="text-align: justify;"></div>
<p style="text-align: justify;">First, let’s simply print out the **kwargs arguments that we pass to a function. We’ll create a short function to do this:</p>
<p style="text-align: justify;">print_kwargs.py</p>
<div class="CodeContent" style="text-align: justify;">
<div class="hddn">
<figure class="highlight">
<pre><code id="code2" class="python hljs bash" data-lang="python"><span class="nt"><strong>def <span class="hljs-built_in">print</span>_kwargs(**kwargs):
<span class="hljs-built_in">print</span>(kwargs)</strong></span></code></pre>
</figure>
</div>
</div>
<p style="text-align: justify;">Next, we will call the function with some other keyword arguments passed into the function:</p>
<div class="subheading" style="text-align: justify;">
<h2 id="sample-code">Sample Code:</h2>
<div class="code-embed-wrapper"> <div class="code-embed-infos"> </div> <pre class="language-python code-embed-pre line-numbers"  data-start="1" data-line-offset="0"><code class="language-python code-embed-code">def print_kwargs(**kwargs):<br/>        print(kwargs)<br/>print_kwargs(kwargs_1=&quot;Shark&quot;, kwargs_2=4.5, kwargs_3=True)</code></pre> </div>
</div>
<div class="subheading" style="text-align: justify;">
<h2 id="output">Output :</h2>
<div class="code-embed-wrapper"> <div class="code-embed-infos"> </div> <pre class="language-python code-embed-pre line-numbers"  data-start="1" data-line-offset="0"><code class="language-python code-embed-code">{&#039;kwargs_3&#039;: True, &#039;kwargs_2&#039;: 4.5, &#039;kwargs_1&#039;: &#039;Shark&#039;}</code></pre> </div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/python/what-is-double-asterisk-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;">&gt;&gt;&gt; used in python</h2>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>The symbol &gt;&gt;&gt; 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>&gt;&gt;&gt; <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>
		<item>
		<title>What is Decorator in python ?</title>
		<link>https://www.wikitechy.com/interview-questions/python/what-is-decorator-in-python/</link>
					<comments>https://www.wikitechy.com/interview-questions/python/what-is-decorator-in-python/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Sun, 18 Jul 2021 14:50:37 +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[Atos interview questions and answers]]></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[decorator pattern python]]></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 built in decorators]]></category>
		<category><![CDATA[python class decorator]]></category>
		<category><![CDATA[python class method decorator]]></category>
		<category><![CDATA[python class property decorator]]></category>
		<category><![CDATA[python data science interview questions]]></category>
		<category><![CDATA[python decorate class method]]></category>
		<category><![CDATA[python decorator class]]></category>
		<category><![CDATA[python decorator class vs function]]></category>
		<category><![CDATA[python decorator example]]></category>
		<category><![CDATA[python decorator library]]></category>
		<category><![CDATA[python decorator with arguments]]></category>
		<category><![CDATA[python decorators explained]]></category>
		<category><![CDATA[python decorators with arguments]]></category>
		<category><![CDATA[python interview questions and answers for testers]]></category>
		<category><![CDATA[python multiple decorators]]></category>
		<category><![CDATA[python programming questions]]></category>
		<category><![CDATA[python property decorator]]></category>
		<category><![CDATA[python telephonic interview questions]]></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[what is a decorator in python]]></category>
		<category><![CDATA[what is decorator in python]]></category>
		<category><![CDATA[Xoriant Soluti interview questions and answers]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=876</guid>

					<description><![CDATA[Answer : A decorator in Python is a function that takes another function as an argument...]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<h2 id="decorator-in-python" class="color-purple" style="text-align: justify;">Decorator in python</h2>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>A decorator in Python is a function that takes another function as an argument, while not changing the function being used as an argument.</li>
<li>Decorators dynamically alter the functionality of a function without using sub classes.</li>
<li>This is useful when you want to extend the functionality of functions and don&#8217;t want to modify them.</li>
</ul>
</div>
</div>
<div class="text-center row" style="text-align: justify;">
<div class="col-sm-12">
<div id="bsa-zone_1590522538159-8_123456"></div>
</div>
</div>
<div class="ImageContent" style="text-align: justify;">
<div class="hddn" style="text-align: center;"><img decoding="async" class="alignnone size-medium" src="https://cdn.wikitechy.com/interview-questions/python/python-decorators.png" alt="Python Decorators" width="400" height="317" /></div>
</div>
<div class="subheading" style="text-align: justify;">
<h2 id="example">Example:</h2>
<div class="code-embed-wrapper"> <div class="code-embed-infos"> </div> <pre class="language-markdown code-embed-pre line-numbers"  data-start="1" data-line-offset="0"><code class="language-markdown code-embed-code">def decorator(func):<br/>	def wrapper():<br/>		print &quot;Hello Wikitechy&quot;<br/>		print func(&quot;Hai&quot;)<br/>		print &quot;How r you?&quot;<br/> <br/>	return wrapper<br/> <br/>def some_random_function(hello):<br/>	return hello<br/> <br/>decorated_function = decorator(some_random_function)<br/>decorated_function()</code></pre> </div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/python/what-is-decorator-in-python/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is Python Wrapper ?</title>
		<link>https://www.wikitechy.com/interview-questions/python/what-is-python-wrapper/</link>
					<comments>https://www.wikitechy.com/interview-questions/python/what-is-python-wrapper/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Sun, 18 Jul 2021 14:47:38 +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[Atos interview questions and answers]]></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 class wrapper]]></category>
		<category><![CDATA[python data science interview questions]]></category>
		<category><![CDATA[python exe wrapper]]></category>
		<category><![CDATA[python function wrapper]]></category>
		<category><![CDATA[python gnuplot wrapper]]></category>
		<category><![CDATA[python interview questions and answers for testers]]></category>
		<category><![CDATA[python programming questions]]></category>
		<category><![CDATA[python rest api wrapper]]></category>
		<category><![CDATA[python subprocess]]></category>
		<category><![CDATA[python telephonic interview questions]]></category>
		<category><![CDATA[python wrap exception]]></category>
		<category><![CDATA[python wrapper api]]></category>
		<category><![CDATA[python wrapper class]]></category>
		<category><![CDATA[python wrapper function arguments]]></category>
		<category><![CDATA[python wrapper script]]></category>
		<category><![CDATA[python wrapper tutorial]]></category>
		<category><![CDATA[python wraps decorator]]></category>
		<category><![CDATA[python wraps example]]></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[wrapper class in python]]></category>
		<category><![CDATA[wrapper function python]]></category>
		<category><![CDATA[wraps in python]]></category>
		<category><![CDATA[Xoriant Soluti interview questions and answers]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=875</guid>

					<description><![CDATA[Answer : A wrapper is a python module that interface between python and another software library function which is a non python interface.]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<h2 id="python-wrapper" class="color-purple" style="text-align: justify;">Python Wrapper</h2>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>A wrapper is a python module that interface between python and another software library function which is a non python interface.</li>
<li>Python wrapper allows users to write only python code, even when calling non python libraries.Decorators are also called &#8216;wrappers&#8217;.</li>
</ul>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>To pass the argument from <strong><code>my_function</code> to <code>wrapper</code></strong> the syntax is,</li>
</ul>
</div>
</div>
<div class="CodeContent" style="text-align: justify;">
<div class="hddn">
<figure class="highlight">
<pre><strong><code id="code1" class="hljs scss" data-lang=""><span class="nt">def <span class="hljs-function">wrapper</span>(x)<span class="hljs-value">:</span></span></code></strong></pre>
</figure>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<p>If you need more functions we do have something like:</p>
</div>
</div>
<div class="CodeContent" style="text-align: justify;">
<div class="hddn">
<figure class="highlight">
<pre><strong><code id="code2" class="hljs scss" data-lang=""><span class="nt">def <span class="hljs-function">wrapper</span>(*args, **kwargs)<span class="hljs-value">:</span></span></code></strong></pre>
</figure>
</div>
</div>
<div class="Content">
<div class="hddn">
<p style="text-align: justify;">But, your logic within the decorator should able to handle the <code>args</code> and <code>kwargs</code> generally.</p>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/python/what-is-python-wrapper/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is Python Pickle Module ?</title>
		<link>https://www.wikitechy.com/interview-questions/python/what-is-python-pickle-module/</link>
					<comments>https://www.wikitechy.com/interview-questions/python/what-is-python-pickle-module/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Sun, 18 Jul 2021 14:43:49 +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[Atos interview questions and answers]]></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[install pickle python]]></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[pickle dump multiple objects]]></category>
		<category><![CDATA[pickle file extension]]></category>
		<category><![CDATA[pickle ran out of inputc]]></category>
		<category><![CDATA[pickle vs pickle]]></category>
		<category><![CDATA[pip install pickle]]></category>
		<category><![CDATA[Prokarma Softech Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[python data science interview questions]]></category>
		<category><![CDATA[python dill]]></category>
		<category><![CDATA[python interview questions and answers for testers]]></category>
		<category><![CDATA[python pickle create new file]]></category>
		<category><![CDATA[python pickle dump]]></category>
		<category><![CDATA[python pickle dump example]]></category>
		<category><![CDATA[python pickle example]]></category>
		<category><![CDATA[python pickle file]]></category>
		<category><![CDATA[python pickle module]]></category>
		<category><![CDATA[python pickle tutorial]]></category>
		<category><![CDATA[python programming questions]]></category>
		<category><![CDATA[python telephonic interview questions]]></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[unpickle python]]></category>
		<category><![CDATA[Virtusa Consulting Services Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Wells Fargo interview questions and answers]]></category>
		<category><![CDATA[what is pickle in python]]></category>
		<category><![CDATA[Xoriant Soluti interview questions and answers]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=874</guid>

					<description><![CDATA[Answer : Python's pickle module is a serialization (converting the object into streams of bytes) library which is used to serialize the python objects.]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<h2 id="python-pickle-module" class="color-purple" style="text-align: justify;">Python Pickle Module</h2>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>Python&#8217;s pickle module is a serialization (converting the object into streams of bytes) library which is used to serialize the python objects.That means it can be used to encode and decode your functions, classes, dict, list, string etc,.</li>
<li>Two important methods that pickle module provides are <code>`pickle.dumps`</code> and <code>`pickle.loads`</code>.</li>
</ul>
</div>
</div>
<div class="text-center row" style="text-align: justify;"></div>
<div class="TextHeading" style="text-align: justify;">
<div class="hddn">
<h2 id="what-is-pickle-in-python-used-for" class="color-purple">What is pickle in python used for ?</h2>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>It is used for serializing and de-serializing a Python object structure. Any object in python can be pickled so that it can be saved on disk.</li>
<li>What pickle does “serialises” the object before writing the file. Pickling is a way to convert a python object (list, dict, etc.) into a character stream.</li>
</ul>
</div>
</div>
<div class="TextHeading" style="text-align: justify;">
<div class="hddn">
<h2 id="pickle-dump-example" class="color-purple">Pickle dump Example:</h2>
</div>
</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"><span class="hljs-comment"># Save a dictionary into a pickle file.</span>
import pickle    
wikitechy_tutorial = { <span class="hljs-string">"Technology1"</span>: <span class="hljs-string">"python"</span>, <span class="hljs-string">"Technology2"</span>: <span class="hljs-string">"java"</span> }    
pickle.dump( wikitechy_tutorial, open( <span class="hljs-string">"save.p"</span>, <span class="hljs-string">"wb"</span> ) )</span></code></pre>
</figure>
</div>
</div>
<div class="TextHeading" style="text-align: justify;">
<div class="hddn">
<h2 id="pickle-load-example" class="color-purple">Pickle Load Example:</h2>
</div>
</div>
<div class="CodeContent" style="text-align: justify;">
<div class="hddn">
<figure class="highlight">
<pre><code id="code2" class="python hljs typescript" data-lang="python"><span class="nt"># Load the dictionary back from the pickle file.
<span class="hljs-keyword">import</span> pickle    
wikitechy_tutorial = pickle.load( open( <span class="hljs-string">"save.p"</span>, <span class="hljs-string">"rb"</span> ) )
# wikitechy_tutorial is now { <span class="hljs-string">"Technology1"</span>: <span class="hljs-string">"python"</span>, <span class="hljs-string">"Technology2"</span>: <span class="hljs-string">"java"</span> }</span></code></pre>
</figure>
</div>
</div>
<div style="text-align: justify;">
<div id="bsa-zone_1590522394795-6_123456"></div>
</div>
<div class="hddn"><img decoding="async" class="alignnone size-medium aligncenter" src="https://cdn.wikitechy.com/interview-questions/python/what-is-python-pickle-module.png" alt="what is python pickle module" width="425" height="539" /></div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/python/what-is-python-pickle-module/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is Python Flask ?</title>
		<link>https://www.wikitechy.com/interview-questions/python/what-is-python-flask/</link>
					<comments>https://www.wikitechy.com/interview-questions/python/what-is-python-flask/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Sun, 18 Jul 2021 14:40:27 +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[Atos interview questions and answers]]></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[flask example]]></category>
		<category><![CDATA[flask example website]]></category>
		<category><![CDATA[flask python tutorial]]></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 data science interview questions]]></category>
		<category><![CDATA[python flask example]]></category>
		<category><![CDATA[python flask vs django]]></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[Reliance Industries Ltd interview questions and answers]]></category>
		<category><![CDATA[SAP Labs India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[simple flask app example]]></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=873</guid>

					<description><![CDATA[Answer : The flask is a web-development framework and it is one of the most-popular modules of python for web developers.]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<h2 id="python-flask" class="color-purple" style="text-align: justify;">Python Flask</h2>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>The flask is a web-development framework and it is one of the most-popular modules of python for web developers.</li>
<li>It is easy to use, quick to learn, and easy to create applications. It uses template for html rendering.</li>
<li>All though it is a micro-framework one can create medium level applications with this framework.</li>
<li>Flask is a micro web framework developed in Python and it is based on the Werkzeug toolkit and Jinja2 template engine. It is Berkeley Software Distribution (BSD) licensed. Though, Flask supports extensions that include application features as if they were implemented in within the Flask.</li>
</ul>
</div>
</div>
<div class="text-center row" style="text-align: justify;">
<div class="col-sm-12">
<div id="bsa-zone_1590522538159-8_123456" style="text-align: center;"><img loading="lazy" decoding="async" class="alignnone size-medium" src="https://cdn.wikitechy.com/interview-questions/python/python-flask.png" alt="Python flask" width="648" height="558" /></div>
</div>
</div>
<div class="ImageContent">
<div class="hddn" style="text-align: justify;"></div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/python/what-is-python-flask/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is Python Threading ?</title>
		<link>https://www.wikitechy.com/interview-questions/python/what-is-python-threading/</link>
					<comments>https://www.wikitechy.com/interview-questions/python/what-is-python-threading/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Sun, 18 Jul 2021 14:37:30 +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[Atos interview questions and answers]]></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 create thread]]></category>
		<category><![CDATA[python data science interview questions]]></category>
		<category><![CDATA[python interview questions and answers for testers]]></category>
		<category><![CDATA[python multithreading]]></category>
		<category><![CDATA[python multithreading example]]></category>
		<category><![CDATA[python programming questions]]></category>
		<category><![CDATA[python run class method in thread]]></category>
		<category><![CDATA[python run function in thread]]></category>
		<category><![CDATA[python start thread in background]]></category>
		<category><![CDATA[python stop thread]]></category>
		<category><![CDATA[python telephonic interview questions]]></category>
		<category><![CDATA[python thread class]]></category>
		<category><![CDATA[python thread join]]></category>
		<category><![CDATA[python thread pool]]></category>
		<category><![CDATA[python thread sleep]]></category>
		<category><![CDATA[python threading]]></category>
		<category><![CDATA[python threading example]]></category>
		<category><![CDATA[python threading lock]]></category>
		<category><![CDATA[python threading queue]]></category>
		<category><![CDATA[python threading return value]]></category>
		<category><![CDATA[python threading timer]]></category>
		<category><![CDATA[python threading vs multiprocessing]]></category>
		<category><![CDATA[python threadpool]]></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=872</guid>

					<description><![CDATA[Answer : It is a light-weight process and they don’t require more memory overhead they are less expensive than processes.]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<h2 id="python-threading" class="color-purple">Python Threading</h2>
</div>
</div>
<div class="Content">
<div class="hddn">
<ul>
<li>It is a light-weight process and they don’t require more memory overhead they are less expensive than processes.</li>
<li>A thread has a starting, an execution sequence, and a conclusion. It has an instruction pointer that monitors where inside its context it is currently running.</li>
</ul>
</div>
</div>
<div class="Content">
<div class="hddn">
<ul>
<li style="list-style-type: none;">
<ul>
<li>It can be pre-interrupted.</li>
<li>It can temporarily be put on hold (also called sleeping) while other threads are running &#8211; this is known as yielding.</li>
</ul>
</li>
</ul>
</div>
</div>
<div class="Content">
<div class="hddn">
<ul>
<li>The newer threading module included with Python 2.4 provides much more powerful, high-level support for threads than the thread module.</li>
<li>A Python threading module exposes all the methods of the thread module and it will give several extra methods.</li>
</ul>
</div>
</div>
<div class="Content">
<div class="hddn">
<ul>
<li style="list-style-type: none;">
<ul>
<li>threading.activeCount() – It returns the number of thread objects that are active.</li>
<li>threading.currentThread() − It returns the number of thread objects in the caller&#8217;s thread control.</li>
<li>threading.enumerate() − It returns a list of all thread objects that are currently active.</li>
</ul>
</li>
</ul>
</div>
</div>
<div class="Content">
<div class="hddn">
<ul>
<li>Additionally the methods, and thread module has thread class that implements threading. These methods provided by the Thread class are given below:</li>
</ul>
</div>
</div>
<div class="Content">
<div class="hddn">
<ul>
<li style="list-style-type: none;">
<ul>
<li>run() − This method is the entry point for a thread.</li>
<li>start() − This method starts a thread by calling the run method.</li>
<li>join([time]) − This waits for threads to terminate.</li>
<li>isAlive() − This method checks whether a thread is still executing.</li>
<li>getName() − This method returns the name of a thread.</li>
<li>setName() − This method sets the name of a thread.</li>
</ul>
</li>
</ul>
</div>
</div>
<div class="ImageContent">
<div class="hddn"><img loading="lazy" decoding="async" class="alignnone size-medium aligncenter" src="https://cdn.wikitechy.com/interview-questions/python/python-thread.png" alt="Python thread" width="400" height="243" /></div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/python/what-is-python-threading/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is Python Set Union ?</title>
		<link>https://www.wikitechy.com/interview-questions/python/what-is-python-set-union/</link>
					<comments>https://www.wikitechy.com/interview-questions/python/what-is-python-set-union/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Sun, 18 Jul 2021 14:05:08 +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[Atos interview questions and answers]]></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[how to use set in python]]></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 create set]]></category>
		<category><![CDATA[python data science interview questions]]></category>
		<category><![CDATA[python intersection of sets]]></category>
		<category><![CDATA[python interview questions and answers for testers]]></category>
		<category><![CDATA[python ordered set]]></category>
		<category><![CDATA[python programming questions]]></category>
		<category><![CDATA[python set add]]></category>
		<category><![CDATA[python set contains]]></category>
		<category><![CDATA[python set difference]]></category>
		<category><![CDATA[python set example]]></category>
		<category><![CDATA[python set function]]></category>
		<category><![CDATA[python set intersection]]></category>
		<category><![CDATA[python set operations]]></category>
		<category><![CDATA[python set size]]></category>
		<category><![CDATA[python set symmetric difference]]></category>
		<category><![CDATA[python set to list]]></category>
		<category><![CDATA[python set union]]></category>
		<category><![CDATA[python set union example]]></category>
		<category><![CDATA[python set update]]></category>
		<category><![CDATA[python telephonic interview questions]]></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[set contains python]]></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[what is a set in python]]></category>
		<category><![CDATA[what is set in python]]></category>
		<category><![CDATA[Xoriant Soluti interview questions and answers]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=859</guid>

					<description><![CDATA[Answer : The union() method returns a new set with distinct elements from each and every one of the sets.]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<h2 id="python-set-union" class="color-purple" style="text-align: justify;">Python Set Union</h2>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>The union() method returns a new set with distinct elements from each and every one of the sets.</li>
<li>The union of two or more sets is the set of all distinct elements shown in all the sets.</li>
</ul>
</div>
</div>
<div class="ImageContent" style="text-align: justify;">
<div class="hddn"><img loading="lazy" decoding="async" class="alignnone size-medium aligncenter" src="https://cdn.wikitechy.com/interview-questions/python/python-set-union.png" alt="Python set union" width="350" height="353" /></div>
</div>
<p style="text-align: justify;" align="center">Learn python &#8211; python tutorial &#8211; python set union &#8211; python examples &#8211; python programs</p>
<div class="subheading" style="text-align: justify;">
<h2 id="example">Example:</h2>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li style="list-style-type: none;">
<ul>
<li>A = {1, 2}</li>
<li>B = {2, 3, 4}</li>
<li>C = {5}</li>
</ul>
</li>
</ul>
<p>Then,</p>
<ul>
<li>A∪B = B∪A ={1, 2, 3, 4}</li>
<li>A∪C = C∪A ={1, 2, 5}</li>
<li>B∪C = C∪B ={2, 3, 4, 5}</li>
<li>A∪B∪C = {1, 2, 3, 4, 5}</li>
</ul>
</div>
</div>
<div class="subheading" style="text-align: justify;">
<h2 id="syntax" class="color-purple">Syntax:</h2>
</div>
<div class="CodeContent" style="text-align: justify;">
<div class="hddn">
<figure class="highlight">
<pre><code id="code1" class="python hljs css" data-lang="python"><span class="nt"><span class="hljs-tag">S</span><span class="hljs-class">.union</span>(<span class="hljs-tag">t</span>)</span></code></pre>
</figure>
</div>
</div>
<div class="subheading" style="text-align: justify;">
<h2 id="set-union-using-operator" class="color-purple">Set Union Using | Operator</h2>
<div class="code-embed-wrapper"> <div class="code-embed-infos"> </div> <pre class="language-markdown code-embed-pre line-numbers"  data-start="1" data-line-offset="0"><code class="language-markdown code-embed-code">A = {&#039;a&#039;, &#039;c&#039;, &#039;d&#039;}<br/>B = {&#039;c&#039;, &#039;d&#039;, 2 }<br/>C= {1, 2, 3}<br/>print(&#039;A U B =&#039;, A| B)<br/>print(&#039;B U C =&#039;, B | C)<br/>print(&#039;A U B U C =&#039;, A | B | C)</code></pre> </div>
</div>
<div class="subheading" style="text-align: justify;">
<h2 id="output" class="color-purple">Output</h2>
</div>
<div class="Output" style="text-align: justify;">
<div class="hddn">
<figure class="highlight"><div class="code-embed-wrapper"> <div class="code-embed-infos"> </div> <pre class="language-markdown code-embed-pre line-numbers"  data-start="1" data-line-offset="0"><code class="language-markdown code-embed-code">A U B = {2, &#039;a&#039;, &#039;c&#039;, &#039;d&#039;}<br/>B U C = {1, 2, 3, &#039;c&#039;, &#039;d&#039;}<br/>A U B U C = {1, 2, 3, &#039;a&#039;, &#039;c&#039;, &#039;d&#039;}</code></pre> </div></figure>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/python/what-is-python-set-union/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is super function in Python ?</title>
		<link>https://www.wikitechy.com/interview-questions/python/what-is-super-function-in-python/</link>
					<comments>https://www.wikitechy.com/interview-questions/python/what-is-super-function-in-python/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Sun, 18 Jul 2021 14:03:26 +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[Atos interview questions and answers]]></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[len command python]]></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 data science interview questions]]></category>
		<category><![CDATA[python interview questions and answers for testers]]></category>
		<category><![CDATA[python programming questions]]></category>
		<category><![CDATA[python super arguments]]></category>
		<category><![CDATA[python super classmethod]]></category>
		<category><![CDATA[python super keyword arguments]]></category>
		<category><![CDATA[python super multiple inheritance]]></category>
		<category><![CDATA[python super typeerror: must be type]]></category>
		<category><![CDATA[python super() explained]]></category>
		<category><![CDATA[python telephonic interview questions]]></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=858</guid>

					<description><![CDATA[Answer : A super() indicates the immediate parent of actual class. Just like `self` which is not a keyword, but to access parent.]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<h2 id="super-function-in-python" class="color-purple" style="text-align: justify;">Super Function in Python</h2>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>A super() indicates the immediate parent of actual class. Just like `self` which is not a keyword, but to access parent.</li>
<li>Before `super`, the method was to explicitly use the type of master as specifier and to add `self` on function signature.</li>
</ul>
</div>
</div>
<p style="text-align: justify;">In Python, super() built-in has two major use cases:</p>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li style="list-style-type: none;">
<ul>
<li>Allows us to avoid using base class explicitly</li>
<li>Working with Multiple Inheritance</li>
</ul>
</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"><div class="code-embed-wrapper"> <div class="code-embed-infos"> </div> <pre class="language-markdown code-embed-pre line-numbers"  data-start="1" data-line-offset="0"><code class="language-markdown code-embed-code">class LoggingDict(dict):<br/>    def __setitem__(self, key, value):<br/>        logging.info(&#039;Settingto %r&#039; % (key, value))<br/>        super().__setitem__(key, value)</code></pre> </div></figure>
</div>
</div>
<div class="Content">
<div class="hddn">
<ul>
<li style="list-style-type: none;">
<ul>
<li style="text-align: justify;">These classes have all the same capabilities like as its parent, dict, but it extends the __setitem__ method to create log entries whenever a key is updated. After creating a log entry, method uses super() to delegate the work for essentially updating the dictionary with the key or value pair.</li>
<li style="text-align: justify;">Before super() was presented, it have hardwired the call among dict.__setitem__(key, value and self). In any case, super() is improved since it is computed indirect reference.</li>
</ul>
</li>
</ul>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/python/what-is-super-function-in-python/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is Python Range() Function ?</title>
		<link>https://www.wikitechy.com/interview-questions/python/what-is-python-range-function/</link>
					<comments>https://www.wikitechy.com/interview-questions/python/what-is-python-range-function/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Sun, 18 Jul 2021 14:01:42 +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[Atos interview questions and answers]]></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[how to calculate inclusive range]]></category>
		<category><![CDATA[how to use range in python]]></category>
		<category><![CDATA[IBM interview questions and answers]]></category>
		<category><![CDATA[inclusive range vs exclusive range]]></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 array range]]></category>
		<category><![CDATA[python data science interview questions]]></category>
		<category><![CDATA[python for loop range]]></category>
		<category><![CDATA[python interview questions and answers for testers]]></category>
		<category><![CDATA[python programming questions]]></category>
		<category><![CDATA[python range float]]></category>
		<category><![CDATA[python range for]]></category>
		<category><![CDATA[python range for loop]]></category>
		<category><![CDATA[python range function]]></category>
		<category><![CDATA[python range inclusive]]></category>
		<category><![CDATA[python range inclusive end]]></category>
		<category><![CDATA[python range list]]></category>
		<category><![CDATA[python range reverse]]></category>
		<category><![CDATA[python range step]]></category>
		<category><![CDATA[python range vs xrange]]></category>
		<category><![CDATA[python range with float]]></category>
		<category><![CDATA[python telephonic interview questions]]></category>
		<category><![CDATA[Reliance Industries Ltd interview questions and answers]]></category>
		<category><![CDATA[reverse range python]]></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=857</guid>

					<description><![CDATA[Answer : The Python range is a built-in function in Python which is very useful to generate sequences of numbers in the form of a list.]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<h2 id="range-function" class="color-purple">Range Function</h2>
</div>
</div>
<p align="center"><img loading="lazy" decoding="async" class="alignnone size-medium" src="https://cdn.wikitechy.com/interview-questions/python/what-is-python-range-function.png" alt="what-is-python-range-function" width="674" height="300" /></p>
<div class="TextHeading">
<div class="hddn">
<h2 id="python-range-function" class="color-purple">Python Range() Function</h2>
</div>
</div>
<div class="Content">
<div class="hddn">
<ul>
<li>The Python range is a built-in function in Python which is very useful to generate sequences of numbers in the form of a list.</li>
<li>The given end point is never part of the generated list.</li>
<li>The range() function has two sets of parameters, as follows:
<ul>
<li>All parameters should be integers.</li>
<li>All parameters may be positive or negative</li>
</ul>
</li>
<li>Number of integers is to generate, beginning from zero. eg. range(4) == [0, 1, 2,3].</li>
</ul>
</div>
</div>
<div class="subheading">
<h2 id="syntax">Syntax:</h2>
</div>
<div class="CodeContent">
<div class="hddn">
<figure class="highlight">
<pre><code id="code1" class="python hljs scss" data-lang="python"><span class="nt"><span class="hljs-function">range</span>(<span class="hljs-attr_selector">[start]</span>, stop,<span class="hljs-attr_selector">[step]</span>)</span></code></pre>
</figure>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/python/what-is-python-range-function/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is init function in Python ?</title>
		<link>https://www.wikitechy.com/interview-questions/python/what-is-init-function-in-python/</link>
					<comments>https://www.wikitechy.com/interview-questions/python/what-is-init-function-in-python/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Sun, 18 Jul 2021 14:00:00 +0000</pubDate>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[__init__ python 3python init main]]></category>
		<category><![CDATA[__init__.py python]]></category>
		<category><![CDATA[__init__.py python 3]]></category>
		<category><![CDATA[Accenture interview questions and answers]]></category>
		<category><![CDATA[Applied Materials interview questions and answers]]></category>
		<category><![CDATA[Atos interview questions and answers]]></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[def __init__(self)]]></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 class definition]]></category>
		<category><![CDATA[python class definition example]]></category>
		<category><![CDATA[python class init]]></category>
		<category><![CDATA[python class init function]]></category>
		<category><![CDATA[python class init method]]></category>
		<category><![CDATA[python class init super]]></category>
		<category><![CDATA[python class initialization]]></category>
		<category><![CDATA[python class without __init__]]></category>
		<category><![CDATA[python data science interview questions]]></category>
		<category><![CDATA[python do classes need init]]></category>
		<category><![CDATA[python init not called]]></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[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[what is python class init ?]]></category>
		<category><![CDATA[Xoriant Soluti interview questions and answers]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=856</guid>

					<description><![CDATA[Answer : In Python, __init__() method within a class is its constructor...]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<h2 id="python-init" class="color-purple" style="text-align: justify;">Python init():</h2>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>In Python, __init__() method within a class is its constructor.Any method or variable that starts with double underscore is by default private.</li>
<li>Python defines several standard private methods that have a special meaning, and __init__() is one of them. Some others are __str__(), __repr__(), __add__() and others.</li>
</ul>
</div>
</div>
<h2 id="what-does-def-init-do-in-python" class="color-purple" style="text-align: justify;">What does def init do in Python ?</h2>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>The __init__ function is known as a constructor, or initializer, and is automatically called when you create a new instance of a class. Within that function, the recently created object is assigned to the parameter “self”. The notation self.legs is an attribute called legs of the object in the variable self.</li>
</ul>
</div>
</div>
<div class="subheading" style="text-align: justify;">
<h2 id="sample-code">Sample Code:</h2>
<div class="code-embed-wrapper"> <div class="code-embed-infos"> </div> <pre class="language-markdown code-embed-pre line-numbers"  data-start="1" data-line-offset="0"><code class="language-markdown code-embed-code">class my_class(object):<br/>  def __init(self, x, y):<br/>    self.x = x<br/>    self.y = y<br/>def f2(self):<br/>    return self.x + self.y<br/> a = my_class(10, 20)<br/>print a.f2()</code></pre> </div>
</div>
<div class="subheading" style="text-align: justify;">
<h2 id="output">Output :</h2>
</div>
<div class="Output" style="text-align: justify;">
<div class="hddn">
<figure class="highlight">
<pre><code class="python hljs" data-lang="python"><span class="nt">30 
</span></code></pre>
</figure>
</div>
</div>
<p style="text-align: justify;">In the constructor __init__() and method f2(), a initial parameter self is a reference to a object that will later invoke methods at run time. Actually leaving out self parameter in the definition makes it not possible to call it on behalf of the object.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/python/what-is-init-function-in-python/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is DEF function in Python ?</title>
		<link>https://www.wikitechy.com/interview-questions/python/what-is-def-function-in-python/</link>
					<comments>https://www.wikitechy.com/interview-questions/python/what-is-def-function-in-python/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Sun, 18 Jul 2021 13:58:09 +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[Atos interview questions and answers]]></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[define variable python]]></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[how to define a function in python]]></category>
		<category><![CDATA[how to pass a list to a function in python]]></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 class definition]]></category>
		<category><![CDATA[python data science interview questions]]></category>
		<category><![CDATA[python def main]]></category>
		<category><![CDATA[python default arguments]]></category>
		<category><![CDATA[python define class]]></category>
		<category><![CDATA[python define function]]></category>
		<category><![CDATA[python definition]]></category>
		<category><![CDATA[python function arguments listmain function python]]></category>
		<category><![CDATA[python function definition]]></category>
		<category><![CDATA[python function multiple arguments]]></category>
		<category><![CDATA[python function optional arguments]]></category>
		<category><![CDATA[python function return]]></category>
		<category><![CDATA[python function return multiple values]]></category>
		<category><![CDATA[python interview questions and answers for testers]]></category>
		<category><![CDATA[python pass list to function by reference]]></category>
		<category><![CDATA[python programming questions]]></category>
		<category><![CDATA[python telephonic interview questions]]></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=855</guid>

					<description><![CDATA[Answer : The Python Def function is the User-Defined one.]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<h2 id="def-function-in-python" class="color-purple" style="text-align: justify;">DEF function in Python</h2>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>The Python Def function is the User-Defined one.</li>
<li>Function blocks start with the keyword def then followed by the function name and parentheses ( ( ) ).</li>
<li>Any input parameters must place inside the parentheses. Now you can define parameters inside the parentheses.</li>
<li>The initial statement of a function is optional statement &#8211; the documentation string of the function (docstring).</li>
<li>Within the code block each and every function begins with (:) colon and is indented.</li>
<li>The statement return [expression] exits the function, alternatively passing back the expression to caller. The return statement with no arguments is the similar as return none.</li>
</ul>
</div>
</div>
<div class="text-center row" style="text-align: justify;">
<div class="col-sm-12">
<div id="bsa-zone_1590522538159-8_123456"></div>
</div>
</div>
<div class="ImageContent" style="text-align: justify;">
<div class="hddn"><img loading="lazy" decoding="async" class="alignnone size-medium aligncenter" src="https://cdn.wikitechy.com/interview-questions/python/def function-in-python.png" alt="def function in python" width="1057" height="552" /></div>
</div>
<div class="subheading" style="text-align: justify;">
<h2 id="syntax">Syntax:</h2>
</div>
<div class="CodeContent">
<div class="hddn">
<figure class="highlight" style="text-align: justify;">
<pre><code id="code1" class="python hljs bash" data-lang="python"><span class="nt">def functionname( parameters ):
   <span class="hljs-string">"function_docstring"</span>
   <span class="hljs-keyword">function</span>_suite
   <span class="hljs-built_in">return</span> [expression]</span></code></pre>
</figure>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/python/what-is-def-function-in-python/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is Python Function ?</title>
		<link>https://www.wikitechy.com/interview-questions/python/what-is-python-function/</link>
					<comments>https://www.wikitechy.com/interview-questions/python/what-is-python-function/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Sun, 18 Jul 2021 13:56:37 +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[Atos interview questions and answers]]></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[functions in python 3]]></category>
		<category><![CDATA[Genpact interview questions and answers]]></category>
		<category><![CDATA[how to call a function in python]]></category>
		<category><![CDATA[how to use functions in python]]></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[multiple functions in python]]></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 built in functions]]></category>
		<category><![CDATA[python data science interview questions]]></category>
		<category><![CDATA[python define constant]]></category>
		<category><![CDATA[python define function]]></category>
		<category><![CDATA[python define variable]]></category>
		<category><![CDATA[python function]]></category>
		<category><![CDATA[python function arguments listmain function python]]></category>
		<category><![CDATA[python function return]]></category>
		<category><![CDATA[python function return multiple values]]></category>
		<category><![CDATA[python interview questions and answers for testers]]></category>
		<category><![CDATA[python list functions]]></category>
		<category><![CDATA[python main function]]></category>
		<category><![CDATA[python programming questions]]></category>
		<category><![CDATA[python telephonic interview questions]]></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[types of functions in python]]></category>
		<category><![CDATA[understanding functions in python]]></category>
		<category><![CDATA[UnitedHealth Group interview questions and answers]]></category>
		<category><![CDATA[user defined functions in python]]></category>
		<category><![CDATA[using functions in python]]></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=854</guid>

					<description><![CDATA[Answer : The Python function is defined by a def statement....]]></description>
										<content:encoded><![CDATA[<div class="ImageContent">
<div class="hddn"></div>
</div>
<p align="center"><img loading="lazy" decoding="async" class="aligncenter size-medium" src="https://cdn.wikitechy.com/interview-questions/python/what-is-python-function.png" alt="What is python function" width="633" height="318" /></p>
<div class="TextHeading">
<div class="hddn">
<h2 id="python-function" class="color-purple">Python Function</h2>
</div>
</div>
<div class="Content">
<div class="hddn">
<ul>
<li style="text-align: justify;">The Python function is defined by a def statement. The syntax looks like this: def function-name (Parameter list): statements, i.e. the function body. The parameter list contains none or more parameters. Parameters are known as arguments, if the function is called.</li>
<li style="text-align: justify;">A python function is a “callable” (which just means something you can invoke) that repeats a set of steps that you pre-define.</li>
</ul>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li style="list-style-type: none;">
<ul>
<li>Function blocks begin with the keyword def followed by the function name and parentheses ( ( ) ).</li>
<li>Any input parameters or arguments must be placed within these parentheses. Now you will define the parameters within the parentheses.</li>
<li>The initial statement of a function is optional &#8211; the documentation string of the function (docstring).</li>
<li>The code block within every function starts with a colon (:) and is indented.</li>
<li>The statement return [expression] exits a function, optionally passing back an expression to the caller. The return statement with no arguments is the similar as return none.</li>
</ul>
</li>
</ul>
</div>
</div>
<div class="subheading" style="text-align: justify;">
<h2 id="syntax" class="color-purple">Syntax :</h2>
</div>
<div class="CodeContent">
<div class="hddn">
<figure class="highlight" style="text-align: justify;">
<pre><code id="code1" class="python hljs bash" data-lang="python"><span class="nt">def functionname( parameters ):
   <span class="hljs-string">"function_docstring"</span>
   <span class="hljs-keyword">function</span>_suite   
   <span class="hljs-built_in">return</span> [expression]</span></code></pre>
</figure>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/python/what-is-python-function/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Where did Python is mostly used ?</title>
		<link>https://www.wikitechy.com/interview-questions/python/where-did-python-is-mostly-used/</link>
					<comments>https://www.wikitechy.com/interview-questions/python/where-did-python-is-mostly-used/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Sun, 18 Jul 2021 13:54:42 +0000</pubDate>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[Accenture interview questions and answers]]></category>
		<category><![CDATA[applications written in python]]></category>
		<category><![CDATA[Applied Materials interview questions and answers]]></category>
		<category><![CDATA[Atos interview questions and answers]]></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[how is python used]]></category>
		<category><![CDATA[how to use python]]></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 applications examples]]></category>
		<category><![CDATA[python data science interview questions]]></category>
		<category><![CDATA[python interview questions and answers for testers]]></category>
		<category><![CDATA[python language uses]]></category>
		<category><![CDATA[python programming questions]]></category>
		<category><![CDATA[python telephonic interview questions]]></category>
		<category><![CDATA[python uses real world]]></category>
		<category><![CDATA[python uses which typing]]></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[use of python language in industry]]></category>
		<category><![CDATA[Virtusa Consulting Services Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Wells Fargo interview questions and answers]]></category>
		<category><![CDATA[what can python be used for]]></category>
		<category><![CDATA[what can you use python for]]></category>
		<category><![CDATA[what is python code used for]]></category>
		<category><![CDATA[what is python good for]]></category>
		<category><![CDATA[what is python used for]]></category>
		<category><![CDATA[why is python used]]></category>
		<category><![CDATA[Xoriant Soluti interview questions and answers]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=853</guid>

					<description><![CDATA[Answer : Python is a scripting language like PHP, Perl, Ruby and so on.....]]></description>
										<content:encoded><![CDATA[<div class="ImageContent">
<div><img loading="lazy" decoding="async" class="aligncenter size-medium" src="https://cdn.wikitechy.com/interview-questions/python/where-did-python-is-mostly-used.png" alt="Where did python is  mostly used" width="556" height="559" /></div>
<div class="hddn" style="text-align: justify;"><span style="color: #000000; font-family: inherit; font-size: 2rem;">Python Uses</span></div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>Python is a scripting language like PHP, Perl, Ruby and so on. It can be used for web programming django, Google App Engine, Zope, and so on. But it can be used for desktop applications Blender 3D, or even for games pygame.</li>
</ul>
</div>
</div>
<div class="Content">
<div class="hddn">
<ul>
<li style="list-style-type: none;">
<ol>
<li style="text-align: justify;">Machine Learning</li>
<li style="text-align: justify;">Data Science</li>
<li style="text-align: justify;">Web Application</li>
<li style="text-align: justify;">DevOps</li>
<li style="text-align: justify;">Process Automation</li>
<li style="text-align: justify;">Test Automation</li>
<li style="text-align: justify;">General purpose applications</li>
<li style="text-align: justify;">Information security</li>
<li style="text-align: justify;">Network security</li>
</ol>
</li>
</ul>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/python/where-did-python-is-mostly-used/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is Classes in Python ?</title>
		<link>https://www.wikitechy.com/interview-questions/python/what-is-classes-in-python/</link>
					<comments>https://www.wikitechy.com/interview-questions/python/what-is-classes-in-python/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Sun, 18 Jul 2021 13:53:08 +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[Atos interview questions and answers]]></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[classes and objects in python]]></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 abstract class]]></category>
		<category><![CDATA[python class attributes]]></category>
		<category><![CDATA[python class constructor]]></category>
		<category><![CDATA[python class definition]]></category>
		<category><![CDATA[python class inheritance]]></category>
		<category><![CDATA[python class init]]></category>
		<category><![CDATA[python class methods]]></category>
		<category><![CDATA[python class name]]></category>
		<category><![CDATA[python class object]]></category>
		<category><![CDATA[python class self]]></category>
		<category><![CDATA[python create class]]></category>
		<category><![CDATA[python data science interview questions]]></category>
		<category><![CDATA[python define class]]></category>
		<category><![CDATA[python extend class]]></category>
		<category><![CDATA[python import class from another file]]></category>
		<category><![CDATA[python instantiate class]]></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[python3 class inherit from object]]></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=852</guid>

					<description><![CDATA[Answer : Classes means of a bundling data and functionality together.]]></description>
										<content:encoded><![CDATA[<div class="row">
<div class="col-sm-12">
<div class="ImageContent" style="text-align: justify;">
<div><img loading="lazy" decoding="async" class="aligncenter size-medium" src="https://cdn.wikitechy.com/interview-questions/python/what-is-classes-in-python.png" alt="what is classes in python" width="852" height="633" /></div>
<div class="hddn"><span style="color: #000000; font-family: inherit; font-size: 2rem;">Classes in Python</span></div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>Classes means of a bundling data and functionality together. Creating a new class makes a new object, enabling new instances of that type to be made.</li>
<li>Each class instance can have attributes attached to it for maintaining its state. Class instances can also have methods (defined by its class) for modifying its state.</li>
<li>Compared with other programming languages, Python’s class mechanism includes classes with a minimum of new syntax and semantics. It is a blend of the class mechanisms that are found in C++ and Modula-3.</li>
<li>In Python, the class inheritance mechanism allows multiple base classes, a derived class will override some methods of its base class, and the method will call a method of a base class with the same name.</li>
<li>Objects can contain random amounts and kinds of data. It is true for modules, classes split of the dynamic nature of Python: they are created at runtime, and then can be changed further after making.</li>
</ul>
</div>
</div>
<div class="subheading" style="text-align: justify;">
<h2 id="syntax">Syntax:</h2>
<div class="code-embed-wrapper"> <div class="code-embed-infos"> </div> <pre class="language-markdown code-embed-pre line-numbers"  data-start="1" data-line-offset="0"><code class="language-markdown code-embed-code">class ClassName:<br/>   &#039;Optional class documentation string&#039;<br/>   class_suite</code></pre> </div>
</div>
<div class="Content">
<div class="hddn">
<p style="text-align: justify;">The class has a documentation string, which can be accessed via ClassName.__doc__.</p>
<p style="text-align: justify;">The class_suite consists of all the component statement defining class members, data attributes and functions.</p>
</div>
</div>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/python/what-is-classes-in-python/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is python Byte code ?</title>
		<link>https://www.wikitechy.com/interview-questions/python/what-is-python-byte-code/</link>
					<comments>https://www.wikitechy.com/interview-questions/python/what-is-python-byte-code/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Sun, 18 Jul 2021 13:51:14 +0000</pubDate>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[a byte of python]]></category>
		<category><![CDATA[Accenture interview questions and answers]]></category>
		<category><![CDATA[Applied Materials interview questions and answers]]></category>
		<category><![CDATA[Atos interview questions and answers]]></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[decompile python bytecode]]></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 byte compile]]></category>
		<category><![CDATA[python bytecode compiler]]></category>
		<category><![CDATA[python bytecode decompiler]]></category>
		<category><![CDATA[python bytecode list]]></category>
		<category><![CDATA[python bytecode opcodes]]></category>
		<category><![CDATA[python bytecode specification]]></category>
		<category><![CDATA[python bytecode tutorial]]></category>
		<category><![CDATA[python bytecode vs java bytecode]]></category>
		<category><![CDATA[python data science interview questions]]></category>
		<category><![CDATA[python interview questions and answers for testers]]></category>
		<category><![CDATA[python load_const]]></category>
		<category><![CDATA[python programming questions]]></category>
		<category><![CDATA[python run bytecode]]></category>
		<category><![CDATA[python telephonic interview questions]]></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[the byte of python]]></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[what is python bytecode]]></category>
		<category><![CDATA[Xoriant Soluti interview questions and answers]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=851</guid>

					<description><![CDATA[Answer : Byte code of Python is generated after compiling a python program.....]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<h2 id="python-byte-code" class="color-purple" style="text-align: justify;">Python Byte code:</h2>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>Byte code of Python is generated after compiling a python program.</li>
<li>Python Byte code goes through two stages.
<ul>
<li>It compiles the code into .pyc files that is actually a bytecode. This .pyc file (bytecode) is interpreted by using CPython interpreter.</li>
<li>Its use for fast execution.</li>
</ul>
</li>
</ul>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<p>Python is a dynamic language, and running it from the command line basically triggers the given steps</p>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li style="list-style-type: none;">
<ul>
<li>The source is compiled first time it is encountered e.g., imported as a module or directly executed. This step generates a binary file, with a .pyc or .pyo extension depending on the system.</li>
<li>The interpreter reads the binary file and executes the opcodes one at a time.</li>
<li>The python interpreter is stack-based and once source is compiled corresponding .pyc is ready in the matching directory (in case of python 2.x). With python 3.x a new __pycache__ directory is produced for the source and all compiled Bytecode files are located underneath.</li>
</ul>
</li>
</ul>
</div>
</div>
<div class="text-center row" style="text-align: justify;"></div>
<div class="subheading" style="text-align: justify;">
<h2 id="example">Example:</h2>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>Save the file as &#8216;MyProgram.py&#8217;. This &#8216;MyProgram.py&#8217; is source code. Now if you compile this file you would get a file with &#8216;.pyc&#8217; extention which is known as byte code.</li>
</ul>
</div>
</div>
<div class="ImageContent">
<div class="hddn" style="text-align: justify;"><img loading="lazy" decoding="async" class="alignnone size-medium" src="https://cdn.wikitechy.com/interview-questions/python/python-bytecode.png" alt="python bytecode" width="707" height="193" /></div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/python/what-is-python-byte-code/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
