<?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 - Interview Questions</title>
	<atom:link href="https://www.wikitechy.com/interview-questions/category/python/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.wikitechy.com/interview-questions/category/python/</link>
	<description>Interview Questions</description>
	<lastBuildDate>Wed, 17 Aug 2022 11:25:22 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.1.1</generator>
	<item>
		<title>What is the difference between Linked Lists and Arrays ?</title>
		<link>https://www.wikitechy.com/interview-questions/python/what-is-the-difference-between-linked-lists-and-arrays/</link>
					<comments>https://www.wikitechy.com/interview-questions/python/what-is-the-difference-between-linked-lists-and-arrays/#respond</comments>
		
		<dc:creator><![CDATA[webmaster]]></dc:creator>
		<pubDate>Wed, 17 Aug 2022 11:25:22 +0000</pubDate>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[are arrays faster than lists]]></category>
		<category><![CDATA[array and linked lists]]></category>
		<category><![CDATA[array vs linked list]]></category>
		<category><![CDATA[array vs linked list time complexity]]></category>
		<category><![CDATA[difference between array and linked list]]></category>
		<category><![CDATA[difference between linked list and arrays]]></category>
		<category><![CDATA[linked list vs array]]></category>
		<category><![CDATA[types of linked list]]></category>
		<category><![CDATA[what is linked list]]></category>
		<category><![CDATA[what is the difference between array and linked list]]></category>
		<category><![CDATA[why linked lists are better than arrays]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=4737</guid>

					<description><![CDATA[   Array               Linked Lists A data structure consisting of a collection of elements each identified by the array index A linear collection of&#8230;]]></description>
										<content:encoded><![CDATA[<table width="100%">
<tbody>
<tr>
<td width="50%"><strong> </strong></p>
<h3 id="array" style="text-align: center;"><strong> Array</strong></h3>
</td>
<td width="50%"><strong> </strong></p>
<h3 id="linked-lists"><strong>            Linked Lists</strong></h3>
</td>
</tr>
<tr>
<td width="360">A data structure consisting of a collection of elements each identified by the array index</td>
<td width="364">A linear collection of data elements whose order is not given by their location in memory</td>
</tr>
<tr>
<td width="360">It supports random access, so the programmer can directly access an element in the array using the index</td>
<td width="364">It supports sequential access, so the programmer has to sequentially go through each element or node until reaching the required element</td>
</tr>
<tr>
<td width="360">Elements are stored in contiguous memory location</td>
<td width="364">Elements can be stored anywhere in the memory</td>
</tr>
<tr>
<td width="360">Programmer has to specify the size of the array at the time of declaring the array</td>
<td width="364">There is no need for specifying the size of a linked list</td>
</tr>
<tr>
<td width="360">Memory allocation happens at compile time</td>
<td width="364">Memory allocation happens at run time</td>
</tr>
<tr>
<td width="360">It is a static memory allocation</td>
<td width="364">It is a dynamic memory allocation</td>
</tr>
<tr>
<td width="360">Elements are independent of each other</td>
<td width="364">An element or node points to the next bode or both next node and previous node</td>
</tr>
<tr>
<td width="360">Size of an array is fixed</td>
<td width="364">Size of an array is not fixed</td>
</tr>
<tr>
<td width="360">Array elements can be modified easily by identifying the index value</td>
<td width="364">Linked list is a complex process for modify node in a linked list</td>
</tr>
<tr>
<td width="360">Array elements cannot be added deleted once it is declared</td>
<td width="364">Nodes in the linked list can be added and deleted from the list</td>
</tr>
</tbody>
</table>
<p style="text-align: justify;">
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/python/what-is-the-difference-between-linked-lists-and-arrays/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is an operator in Python ?</title>
		<link>https://www.wikitechy.com/interview-questions/python/what-is-an-operator-in-python/</link>
					<comments>https://www.wikitechy.com/interview-questions/python/what-is-an-operator-in-python/#respond</comments>
		
		<dc:creator><![CDATA[webmaster]]></dc:creator>
		<pubDate>Wed, 17 Aug 2022 11:05:32 +0000</pubDate>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[* operator in python list]]></category>
		<category><![CDATA[arithmetic operators in python]]></category>
		<category><![CDATA[assignment operator in python]]></category>
		<category><![CDATA[bitwise operator in python]]></category>
		<category><![CDATA[comparison operators in python]]></category>
		<category><![CDATA[does python have operator]]></category>
		<category><![CDATA[identity operators in python]]></category>
		<category><![CDATA[is = an operator in python]]></category>
		<category><![CDATA[logical operators in python]]></category>
		<category><![CDATA[python // operator vs /]]></category>
		<category><![CDATA[python & operator]]></category>
		<category><![CDATA[symbol in python]]></category>
		<category><![CDATA[what is an assignment operator in python]]></category>
		<category><![CDATA[what is an identity operator in python]]></category>
		<category><![CDATA[what is an operator in python]]></category>
		<category><![CDATA[what is not an arithmetic operator in python]]></category>
		<category><![CDATA[what type is an operator in python]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=4732</guid>

					<description><![CDATA[In python operators are generally used to perform operations on variables and values. In specific programming language operators are the pillars of a program on which the logic is built.&#8230;]]></description>
										<content:encoded><![CDATA[<ul>
<li>In python operators are generally used to perform operations on variables and values.</li>
<li>In specific programming language operators are the pillars of a program on which the logic is built.</li>
<li>Python operator consists of different types, they are
<ul>
<li>Arithmetic operators</li>
<li>Comparison operators</li>
<li>Assignment operators</li>
<li>Logical operators</li>
<li>Bitwise operators</li>
<li>Membership operators</li>
<li>Identity operators</li>
</ul>
</li>
</ul>
<p><img decoding="async" loading="lazy" class="alignnone size-full wp-image-4733 aligncenter" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/python-operators.png" alt="" width="1460" height="602" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/python-operators.png 1460w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/python-operators-300x124.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/python-operators-1024x422.png 1024w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/python-operators-768x317.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/python-operators-390x161.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/python-operators-820x338.png 820w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/python-operators-1180x487.png 1180w" sizes="(max-width: 1460px) 100vw, 1460px" /></p>
<h2 id="arithmetic-operators">Arithmetic operators</h2>
<ul>
<li>Arithmetic operators are used to perform arithmetic operations between two operands and it includes + (addition), &#8211; (subtraction), * (multiplication), / (divide), % (reminder), // (floor division) and exponent (**) operators.
<ul style="text-align: justify;">
<li><strong>+ (addition)</strong> operator is used to add two operands.</li>
<li><strong>&#8211; (Subtraction)</strong> operator is used to subtract the second operand from the first operand then if the first operand is less than the second operand, the value results negative.</li>
<li><strong>/ (divide)</strong> returns the quotient after dividing the first operand by the second operand.</li>
<li><strong>* (multiplication)</strong> is used to multiply one operand with the other.</li>
<li><strong>% (reminder) </strong>returns the reminder after dividing the first operand by the second operand.</li>
<li><strong>**(Exponent)</strong> is an exponent operator represented as it calculates the first operand power to the second operand.</li>
<li><strong>// (Floor division)</strong> operator gives the floor value of the quotient produced by dividing the two operands.</li>
</ul>
</li>
</ul>
<h2 id="comparison-operators">Comparison operators</h2>
<ul>
<li>It is used to comparing the value of the two operands and returns Boolean true or false accordingly.
<ul style="text-align: justify;">
<li><strong>(= =)</strong> If the value of two operands is equal, then the condition becomes true.</li>
<li><strong>(! =)</strong> if the value of two operands is not equal, then the condition becomes true.</li>
<li><strong>(&lt; =)</strong> If the first operand is less than or equal to the second operand, then the condition becomes true.</li>
<li><strong>(&gt; =)</strong> if the first operand is greater than or equal to the second operand, then the condition becomes true.</li>
<li><strong>(&gt;)</strong> If the first operand is greater than the second operand, then the condition becomes true.</li>
<li><strong>(&lt;)</strong> If the first operand is less than the second operand, then the condition becomes true.</li>
</ul>
</li>
</ul>
<h2 id="assignment-operators">Assignment operators</h2>
<ul>
<li>It is used to assign the value of the right expression to the left operand.
<ul style="text-align: justify;">
<li><strong>(=)</strong> It assigns the value of the right expression to the left operand.</li>
<li><strong>(+=)</strong> It increases the value of the left operand by the value of the right operand and assigns the modified value back to left operand.</li>
<li><strong>(-=)</strong> It increases the value of the left operand by the value of the right operand and assigns the modified value back to left operand.</li>
<li><strong>(*=)</strong> It multiplies the value of the left operand by the value of the right operand and assigns the modified value back to then the left operand.</li>
<li><strong>(%=)</strong> It divides the value of the left operand by the value of the right operand and assigns the reminder back to the left operand.</li>
<li><strong>(**=)</strong> a**=b will be equal to a=a**b.</li>
<li><strong>(//=)</strong> A//=b will be equal to a = a// b, for example, if a = 4, b = 3, a//=b will assign 4//3 = 1 to a.</li>
</ul>
</li>
</ul>
<h2 id="logical-operators">Logical operators</h2>
<ul>
<li>In expression evaluation logical operators are used primarily to make a decision.
<ul style="text-align: justify;">
<li><strong>“and”</strong> operator is used when both the expression is true, then the condition will be true. If a and b are the two expressions, a → true, b → true =&gt; a and b → true.</li>
<li><strong>“or”</strong> operator is used when one of the expressions is true, then the condition will be true. In this a and b are the two expressions, a → true, b → false =&gt; a or b → true.</li>
<li><strong>“not”</strong> operator is used when an expression a is true, then not (a) will be false and vice versa.</li>
</ul>
</li>
</ul>
<h2 id="membership-operators">Membership operators</h2>
<ul>
<li>It is used to check the membership of value inside a python data structure and if the value is present in the data structure, then the resulting value is true otherwise it returns false.
<ul style="text-align: justify;">
<li><strong>“in”</strong> operator is evaluated to be true if the first operand is found in the second operand (list, tuple, or dictionary).</li>
<li><strong>“Not in”</strong> operator is evaluated to be true if the first operand is not found in the second operand (list, tuple, or dictionary).</li>
</ul>
</li>
</ul>
<h2 id="identity-operators">Identity operators</h2>
<ul>
<li>It is used to decide whether an element certain class or type.
<ul style="text-align: justify;">
<li><strong>“is”</strong> operator is evaluated to be true if the reference present at both sides point to the same object.</li>
<li><strong>“Is not”</strong> is evaluated to be true if the reference present at both sides do not point to the same object.</li>
</ul>
</li>
</ul>
<h2 id="bitwise-operators">Bitwise operators</h2>
<ul>
<li>These operators perform bit by bit operation on the values of the two operands.
<ul style="text-align: justify;">
<li><strong>“&amp; (binary and)”</strong> is used when both the bits at the same place in two operands are 1, then 1 is copied to the result. Otherwise, 0 is copied.</li>
<li><strong>“| (binary or)”</strong> operator is used where the resulting bit will be 0 if both the bits are zero; otherwise, the resulting bit will be 1.</li>
<li><strong>“^ (binary xor)”</strong> operator is used where the resulting bit will be 1 if both the bits are different; otherwise, the resulting bit will be 0.</li>
<li><strong>“~(negation)&#8221;</strong> operator calculates the negation of each bit of the operand, i.e., if the bit is 0, the resulting bit will be 1 and vice versa.</li>
<li><strong>“&lt;&lt; (left shift)”</strong> operator is used where the left operand value is moved left by the number of bits present in the right operand.</li>
<li><strong>“&gt;&gt;(right shift)”</strong> operator is used where the left operand value is moved right by the number of bits present in the right operand.</li>
</ul>
</li>
</ul>
<p>&nbsp;</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/python/what-is-an-operator-in-python/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is swapcase () function in the Python ?</title>
		<link>https://www.wikitechy.com/interview-questions/python/what-is-swapcase-function-in-the-python/</link>
					<comments>https://www.wikitechy.com/interview-questions/python/what-is-swapcase-function-in-the-python/#respond</comments>
		
		<dc:creator><![CDATA[webmaster]]></dc:creator>
		<pubDate>Tue, 16 Aug 2022 12:18:21 +0000</pubDate>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[convert all lowercase letters to uppercase letters and vice versa in python]]></category>
		<category><![CDATA[how to swap case of string in python]]></category>
		<category><![CDATA[how to swapcase in python without inbuilt function]]></category>
		<category><![CDATA[swap case in python]]></category>
		<category><![CDATA[swap case python using function]]></category>
		<category><![CDATA[swapcase function in python 3]]></category>
		<category><![CDATA[swapcase method in python]]></category>
		<category><![CDATA[what are () in python]]></category>
		<category><![CDATA[what does any() do in python]]></category>
		<category><![CDATA[what is * in python function]]></category>
		<category><![CDATA[what is swapcase in python]]></category>
		<category><![CDATA[what is swapcase() function in the python]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=4729</guid>

					<description><![CDATA[In python it is a string&#8217;s function which converts all uppercase characters into lowercase and vice versa. This function is used to alter the existing case of the string. In&#8230;]]></description>
										<content:encoded><![CDATA[<ul>
<li style="text-align: justify;">In python it is a string&#8217;s function which converts all uppercase characters into lowercase and vice versa.</li>
<li style="text-align: justify;">This function is used to alter the existing case of the string.</li>
<li style="text-align: justify;">In swapcase this method creates a copy of the string which contains all the characters.</li>
<li style="text-align: justify;">It generates a small case string and vice versa, if the string is in lowercase and automatically ignores all the non-alphabetic characters.</li>
<li style="text-align: justify;">The swapcase function does not takes any parameter.</li>
<li style="text-align: justify;">With all the cases changed the swapcase () method returns a string.</li>
</ul>
<h3 id="sample-code" style="text-align: justify;">Sample Code</h3>
[pastacode lang=&#8221;python&#8221; manual=&#8221;%23%20Python%20program%20to%20demonstrate%20the%20use%20of%0A%23%20swapcase()%20method%20%20%0A%20%20%0Astring%20%3D%20%22Welcome%20to%20Wikitechy%22%0A%20%20%0A%23%20prints%20after%20swappong%20all%20cases%0Aprint(string.swapcase())%20%20%20%0A%20%20%0Astring%20%3D%20%22striver%22%20%0Aprint(string.swapcase())%20%20%0A%0A%0A&#8221; message=&#8221;&#8221; highlight=&#8221;&#8221; provider=&#8221;manual&#8221;/]
<h3 id="output" style="text-align: justify;">Output</h3>
<p style="text-align: justify;"><img decoding="async" loading="lazy" class="alignnone size-full wp-image-4730" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/swapcase-method.png" alt="" width="1243" height="274" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/swapcase-method.png 1243w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/swapcase-method-300x66.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/swapcase-method-1024x226.png 1024w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/swapcase-method-768x169.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/swapcase-method-390x86.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/swapcase-method-820x181.png 820w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/swapcase-method-1180x260.png 1180w" sizes="(max-width: 1243px) 100vw, 1243px" /></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/python/what-is-swapcase-function-in-the-python/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is zip () function in Python ?</title>
		<link>https://www.wikitechy.com/interview-questions/python/what-is-zip-function-in-python/</link>
					<comments>https://www.wikitechy.com/interview-questions/python/what-is-zip-function-in-python/#respond</comments>
		
		<dc:creator><![CDATA[webmaster]]></dc:creator>
		<pubDate>Tue, 16 Aug 2022 12:13:09 +0000</pubDate>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[how does zip function work in python]]></category>
		<category><![CDATA[print zip object python]]></category>
		<category><![CDATA[python for loop zip two lists]]></category>
		<category><![CDATA[python zip different length]]></category>
		<category><![CDATA[python zip folder]]></category>
		<category><![CDATA[python zip function documentation]]></category>
		<category><![CDATA[what does zip() do in python]]></category>
		<category><![CDATA[what is zip function in python]]></category>
		<category><![CDATA[what is zip() in python]]></category>
		<category><![CDATA[zip and unzip in python]]></category>
		<category><![CDATA[zip dictionary python]]></category>
		<category><![CDATA[zip function in python is used for]]></category>
		<category><![CDATA[zip list python]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=4724</guid>

					<description><![CDATA[In python zip () method takes container or iterable and returns a single iterator object, having mapped values from all the containers. Zip () method is used tomap the similar index of&#8230;]]></description>
										<content:encoded><![CDATA[<ul>
<li>In python zip () method takes container or iterable and returns a single iterator object, having mapped values from all the containers.</li>
<li>Zip () method is used tomap the similar index of multiple containers so that they can be used just using a single entity.</li>
<li>It returns a single iterator object, having mapped values from all the containers.</li>
</ul>
<h3 id="for-example-in-zip-two-lists"><strong>For example, in zip two lists,</strong></h3>
[pastacode lang=&#8221;python&#8221; manual=&#8221;name%20%3D%20%5B%20%22Venkat%22%2C%20%22Nizar%22%2C%20%22Akash%22%2C%20%22Kishore%22%20%5D%0Aroll_no%20%3D%20%5B%204%2C%201%2C%203%2C%202%20%5D%0A%20%0A%23%20using%20zip()%20to%20map%20values%0Amapped%20%3D%20zip(name%2C%20roll_no)%0A%20%0Aprint(set(mapped))%0A&#8221; message=&#8221;&#8221; highlight=&#8221;&#8221; provider=&#8221;manual&#8221;/]
<h3 id="output">Output</h3>
<p><img decoding="async" loading="lazy" class="alignnone size-full wp-image-4725" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/zip-two-lists.png" alt="" width="1260" height="256" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/zip-two-lists.png 1260w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/zip-two-lists-300x61.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/zip-two-lists-1024x208.png 1024w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/zip-two-lists-768x156.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/zip-two-lists-390x79.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/zip-two-lists-820x167.png 820w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/zip-two-lists-1180x240.png 1180w" sizes="(max-width: 1260px) 100vw, 1260px" /></p>
<h3 id="for-example-in-zip-enumerate"><strong>For example, in zip enumerate,</strong></h3>
[pastacode lang=&#8221;python&#8221; manual=&#8221;names%20%3D%20%5B&#8217;Venkat&#8217;%2C%20&#8217;Akash&#8217;%2C%20&#8217;Kishore&#8217;%5D%0Aages%20%3D%20%5B23%2C%2035%2C%2020%5D%0A%20%0Afor%20i%2C%20(name%2C%20age)%20in%20enumerate(zip(names%2C%20ages))%3A%0A%20%20%20%20print(i%2C%20name%2C%20age)%0A&#8221; message=&#8221;&#8221; highlight=&#8221;&#8221; provider=&#8221;manual&#8221;/]
<h3 id="output-2">Output</h3>
<p><img decoding="async" loading="lazy" class="alignnone size-full wp-image-4726" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/zip-enumerator.png" alt="" width="1241" height="301" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/zip-enumerator.png 1241w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/zip-enumerator-300x73.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/zip-enumerator-1024x248.png 1024w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/zip-enumerator-768x186.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/zip-enumerator-390x95.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/zip-enumerator-820x199.png 820w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/zip-enumerator-1180x286.png 1180w" sizes="(max-width: 1241px) 100vw, 1241px" /></p>
<h3 id="for-example-in-zip-dictionary"><strong> For example, in zip Dictionary,</strong></h3>
[pastacode lang=&#8221;python&#8221; manual=&#8221;stocks%20%3D%20%5B&#8217;Wikitechy&#8217;%2C%20&#8217;Wipro&#8217;%2C%20&#8217;TCS&#8217;%5D%0Aprices%20%3D%20%5B2175%2C%201127%2C%202750%5D%0A%20%0Anew_dict%20%3D%20%7Bstocks%3A%20prices%20for%20stocks%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20prices%20in%20zip(stocks%2C%20prices)%7D%0Aprint(new_dict)%0A&#8221; message=&#8221;&#8221; highlight=&#8221;&#8221; provider=&#8221;manual&#8221;/]
<h3 id="output-3">Output</h3>
<p><img decoding="async" loading="lazy" class="alignnone size-full wp-image-4727" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/zip-dictionary.png" alt="" width="1277" height="235" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/zip-dictionary.png 1277w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/zip-dictionary-300x55.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/zip-dictionary-1024x188.png 1024w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/zip-dictionary-768x141.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/zip-dictionary-390x72.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/zip-dictionary-820x151.png 820w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/zip-dictionary-1180x217.png 1180w" sizes="(max-width: 1277px) 100vw, 1277px" /></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/python/what-is-zip-function-in-python/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is type conversion in python ?</title>
		<link>https://www.wikitechy.com/interview-questions/python/what-is-type-conversion-in-python/</link>
					<comments>https://www.wikitechy.com/interview-questions/python/what-is-type-conversion-in-python/#respond</comments>
		
		<dc:creator><![CDATA[webmaster]]></dc:creator>
		<pubDate>Tue, 16 Aug 2022 11:55:14 +0000</pubDate>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[difference between type casting and type conversion in python]]></category>
		<category><![CDATA[explain type conversion in python]]></category>
		<category><![CDATA[explicit type conversion example]]></category>
		<category><![CDATA[explicit type conversion in python]]></category>
		<category><![CDATA[implicit and explicit type conversion in python]]></category>
		<category><![CDATA[python type casting custom class]]></category>
		<category><![CDATA[type conversion in python]]></category>
		<category><![CDATA[what is data type conversion in python]]></category>
		<category><![CDATA[what is implicit type conversion in python]]></category>
		<category><![CDATA[what is the importance of type conversion in python]]></category>
		<category><![CDATA[what is type conversion in python]]></category>
		<category><![CDATA[what is type conversion in python with example]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=4719</guid>

					<description><![CDATA[In python type casting functions to directly convert one data type to another which is useful in day-to-day and competitive programming. The types conversion consists of two types, they are&#8230;]]></description>
										<content:encoded><![CDATA[<ul>
<li style="text-align: justify;">In python type casting functions to directly convert one data type to another which is useful in day-to-day and competitive programming.</li>
<li style="text-align: justify;">The types conversion consists of two types, they are implicit conversion and explicit conversion.</li>
</ul>
<h2 id="implicit-conversion" style="text-align: justify;"><img decoding="async" loading="lazy" class="alignnone size-full wp-image-4720" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/types-conversion.png" alt="" width="727" height="412" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/types-conversion.png 727w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/types-conversion-300x170.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/types-conversion-390x221.png 390w" sizes="(max-width: 727px) 100vw, 727px" /> <strong>Implicit Conversion</strong></h2>
<ul style="text-align: justify;">
<li>In python implicit type conversion data types automatically converts one data type to another without any user involvement.</li>
</ul>
<h3 id="sample-code" style="text-align: justify;"><strong>Sample Code</strong></h3>
[pastacode lang=&#8221;python&#8221; manual=&#8221;x%20%3D%2010%C2%A0%0A%0Aprint(%22x%20is%20of%20type%3A%22%2Ctype(x))%C2%A0%C2%A0%0A%0Ay%20%3D%2010.6%0A%0Aprint(%22y%20is%20of%20type%3A%22%2Ctype(y))%0A%0Ax%20%3D%20x%20%2B%20y%0A%0Aprint(x)%0A%0Aprint(%22x%20is%20of%20type%3A%22%2Ctype(x))&#8221; message=&#8221;&#8221; highlight=&#8221;&#8221; provider=&#8221;manual&#8221;/]
<h3 id="output" style="text-align: justify;">Output</h3>
<p style="text-align: justify;"><img decoding="async" loading="lazy" class="alignnone size-full wp-image-4721" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/implicit-conversion.png" alt="" width="1577" height="330" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/implicit-conversion.png 1577w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/implicit-conversion-300x63.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/implicit-conversion-1024x214.png 1024w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/implicit-conversion-768x161.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/implicit-conversion-1536x321.png 1536w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/implicit-conversion-390x82.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/implicit-conversion-820x172.png 820w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/implicit-conversion-1180x247.png 1180w" sizes="(max-width: 1577px) 100vw, 1577px" /></p>
<h2 id="explicit-conversion" style="text-align: justify;"><strong>Explicit Conversion</strong></h2>
<ul style="text-align: justify;">
<li>In python explicit conversion data type is manually changed by the user as per their requirement.
<ul style="text-align: justify;">
<li>Int () function converts<strong>any data type to integer</strong>. ‘Base’ specifies the<strong> base in which string is</strong> if the data type is a string.</li>
<li>Float () function is used to convert <strong>any data type to a </strong>floating-point number.</li>
<li>Ord () function is used to convert a character to integer.</li>
<li>Hex () function is used to convert integer to hexadecimal string.</li>
<li>Oct () function is used to convert integer to octal string.</li>
<li>Tuple () function is used to convert to a tuple.</li>
<li>Set () function returns the type after converting to a set.</li>
<li>List () function is used to convert any data type to a list type.</li>
<li>Dict () function is used to convert a tuple of order into a dictionary.</li>
<li>Str () function is used to convert integer into a string.</li>
<li>Complex () function converts real numbers to complex number.</li>
<li>Chr () function converts number to its corresponding ASCII character.</li>
</ul>
</li>
</ul>
<h3 id="sample-code-2" style="text-align: justify;"><strong>Sample Code</strong></h3>
[pastacode lang=&#8221;python&#8221; manual=&#8221;%23%20Python%20code%20to%20demonstrate%20Type%20conversion%0A%0A%23%20using%C2%A0%20tuple()%2C%20set()%2C%20list()%0A%0A%23%20initializing%20string%0A%0As%20%3D%20&#8217;geeks&#8217;%C2%A0%C2%A0%0A%0A%23%20printing%20string%20converting%20to%20tuple%0A%0Ac%20%3D%20tuple(s)%0A%0Aprint%20(%22After%20converting%20string%20to%20tuple%20%3A%20%22%2Cend%3D%22%22)%0A%0Aprint%20(c)%0A%0A%23%20printing%20string%20converting%20to%20set%0A%0Ac%20%3D%20set(s)%0A%0Aprint%20(%22After%20converting%20string%20to%20set%20%3A%20%22%2Cend%3D%22%22)%0A%0Aprint%20(c)%C2%A0%0A%0A%23%20printing%20string%20converting%20to%20list%0A%0Ac%20%3D%20list(s)%0A%0Aprint%20(%22After%20converting%20string%20to%20list%20%3A%20%22%2Cend%3D%22%22)%0A%0Aprint%20(c)&#8221; message=&#8221;&#8221; highlight=&#8221;&#8221; provider=&#8221;manual&#8221;/]
<h3 id="output-2" style="text-align: justify;"><strong>Output</strong></h3>
<p><img decoding="async" loading="lazy" class="alignnone size-full wp-image-4722" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/explicit-conversion.png" alt="" width="1596" height="287" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/explicit-conversion.png 1596w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/explicit-conversion-300x54.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/explicit-conversion-1024x184.png 1024w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/explicit-conversion-768x138.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/explicit-conversion-1536x276.png 1536w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/explicit-conversion-390x70.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/explicit-conversion-820x147.png 820w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/explicit-conversion-1180x212.png 1180w" sizes="(max-width: 1596px) 100vw, 1596px" /></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/python/what-is-type-conversion-in-python/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What do you mean by Python literals ?</title>
		<link>https://www.wikitechy.com/interview-questions/python/what-do-you-mean-by-python-literals/</link>
					<comments>https://www.wikitechy.com/interview-questions/python/what-do-you-mean-by-python-literals/#respond</comments>
		
		<dc:creator><![CDATA[webmaster]]></dc:creator>
		<pubDate>Tue, 16 Aug 2022 11:29:10 +0000</pubDate>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[boolean literals in python]]></category>
		<category><![CDATA[difference between literals and data types in python]]></category>
		<category><![CDATA[literals in python]]></category>
		<category><![CDATA[literals in python meaning]]></category>
		<category><![CDATA[special literals in python]]></category>
		<category><![CDATA[string literals in python]]></category>
		<category><![CDATA[types of literals in python with example]]></category>
		<category><![CDATA[types of numeric literals in python]]></category>
		<category><![CDATA[what are literals]]></category>
		<category><![CDATA[what are literals in python how many types of literals in python]]></category>
		<category><![CDATA[what are the literals in python]]></category>
		<category><![CDATA[what do you mean by python literals]]></category>
		<category><![CDATA[what is literals in python with example]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=4710</guid>

					<description><![CDATA[Literals are a notation for representing a fixed value in source code and it can be defined as raw value or data given in variables or constants. String Literals A&#8230;]]></description>
										<content:encoded><![CDATA[<p style="text-align: justify;"><img decoding="async" loading="lazy" class="alignnone size-full wp-image-4711" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/literals-in-python.png" alt="" width="1213" height="826" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/literals-in-python.png 1213w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/literals-in-python-300x204.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/literals-in-python-1024x697.png 1024w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/literals-in-python-768x523.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/literals-in-python-390x266.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/literals-in-python-820x558.png 820w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/literals-in-python-1180x804.png 1180w" sizes="(max-width: 1213px) 100vw, 1213px" /></p>
<ul style="text-align: justify;">
<li style="text-align: justify;">Literals are a notation for representing a fixed value in source code and it can be defined as raw value or data given in variables or constants.</li>
</ul>
<h2 id="string-literals" style="text-align: justify;"><strong>String Literals</strong></h2>
<ul style="text-align: justify;">
<li>A string literal can be created by writing a text with a group of characters surrounded by the single (‘), double (“) or triple quotes.</li>
<li>We can write multi-line strings or display in the desired way by using triple quotes.</li>
</ul>
<h3 id="sample-code" style="text-align: justify;"><strong>Sample Code</strong></h3>
[pastacode lang=&#8221;python&#8221; manual=&#8221;%23%20string%20literals%0A%0A%23%20in%20single%20quote%0A%0As%20%3D%20&#8217;Welcome%20to%20Wikitechy&#8217;%0A%0A%0A%0A%0A%23%20in%20double%20quotes%0A%0At%20%3D%20%22Welcome%20to%20Wikitechy%22%0A%0A%0A%0A%0A%23%20multi-line%20String%0A%0Am%20%3D%20&#8221;&#8217;Welcome%0A%0A%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%20to%0A%0A%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%20Wikitechy&#8221;&#8217;%0A%0A%0A%0A%0Aprint(s)%0A%0Aprint(t)%0A%0Aprint(m)&#8221; message=&#8221;&#8221; highlight=&#8221;&#8221; provider=&#8221;manual&#8221;/]
<h3 id="output" style="text-align: justify;"><strong>Output</strong></h3>
<p style="text-align: justify;"><img decoding="async" loading="lazy" class="alignnone size-full wp-image-4712" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/string-literals.png" alt="" width="1455" height="412" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/string-literals.png 1455w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/string-literals-300x85.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/string-literals-1024x290.png 1024w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/string-literals-768x217.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/string-literals-390x110.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/string-literals-820x232.png 820w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/string-literals-1180x334.png 1180w" sizes="(max-width: 1455px) 100vw, 1455px" /></p>
<h2 id="numeric-literals" style="text-align: justify;"><strong>Numeric Literals</strong></h2>
<ul style="text-align: justify;">
<li>They are immutable and it consists of three data types, they are Integer, Float, Complex.</li>
<li>In integer both positive and negative numbers including 0 and it should not take any fractional part.</li>
<li>Float data type are real numbers having both integer and fractional part.</li>
</ul>
<h3 id="sample-code-2" style="text-align: justify;"><strong>Sample Code</strong></h3>
[pastacode lang=&#8221;python&#8221; manual=&#8221;%23%20integer%20literal%0A%0A%0A%0A%0A%23%20Binary%20Literals%0A%0Aa%20%3D%200b10100%0A%0A%0A%0A%0A%23%20Decimal%20Literal%0A%0Ab%20%3D%2030%0A%0A%0A%0A%0A%23%20Octal%20Literal%0A%0Ac%20%3D%200o320%0A%0A%0A%0A%0A%23%20Hexadecimal%20Literal%0A%0Ad%20%3D%200x12b%0A%0A%0A%0A%0Aprint(a%2C%20b%2C%20c%2C%20d)&#8221; message=&#8221;&#8221; highlight=&#8221;&#8221; provider=&#8221;manual&#8221;/]
<h3 id="output-2" style="text-align: justify;"><strong>Output</strong></h3>
<p style="text-align: justify;"><img decoding="async" loading="lazy" class="alignnone size-full wp-image-4713" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/numeric-literals.png" alt="" width="1442" height="299" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/numeric-literals.png 1442w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/numeric-literals-300x62.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/numeric-literals-1024x212.png 1024w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/numeric-literals-768x159.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/numeric-literals-390x81.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/numeric-literals-820x170.png 820w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/numeric-literals-1180x245.png 1180w" sizes="(max-width: 1442px) 100vw, 1442px" /></p>
<h2 id="boolean-literals" style="text-align: justify;"><strong>Boolean Literals</strong></h2>
<ul style="text-align: justify;">
<li>In python there are only two Boolean literals they are true and false.</li>
</ul>
<h3 id="sample-code-3" style="text-align: justify;"><strong>Sample Code</strong></h3>
[pastacode lang=&#8221;python&#8221; manual=&#8221;x%20%3D%20(1%20%3D%3D%20True)%0A%0Ay%20%3D%20(2%20%3D%3D%20False)%0A%0Az%20%3D%20(3%20%3D%3D%20True)%0A%0Ar%20%3D%20(1%20%3D%3D%20True)%0A%0Aa%20%3D%20True%20%2B%2010%0A%0Ab%20%3D%20False%20%2B%2010%0A%0A%0A%0A%0Aprint(%22x%20is%22%2C%20x)%0A%0Aprint(%22y%20is%22%2C%20y)%0A%0Aprint(%22z%20is%22%2C%20r)%0A%0Aprint(%22a%3A%22%2C%20a)%0A%0Aprint(%22b%3A%22%2C%20b)%0A%0A%0A&#8221; message=&#8221;&#8221; highlight=&#8221;&#8221; provider=&#8221;manual&#8221;/]
<h3 id="output-3" style="text-align: justify;"><strong>Output</strong></h3>
<p style="text-align: justify;"><img decoding="async" loading="lazy" class="alignnone size-full wp-image-4714" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/boolean-literals.png" alt="" width="1391" height="314" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/boolean-literals.png 1391w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/boolean-literals-300x68.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/boolean-literals-1024x231.png 1024w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/boolean-literals-768x173.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/boolean-literals-390x88.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/boolean-literals-820x185.png 820w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/boolean-literals-1180x266.png 1180w" sizes="(max-width: 1391px) 100vw, 1391px" /></p>
<h2 id="literal-collections" style="text-align: justify;"><strong>Literal Collections</strong></h2>
<ul style="text-align: justify;">
<li>In this there are four different types of literal collections, they are Lis literals, Tuple literals, Dict literals, Set literals.</li>
<li>In list literals the values are stored separated by comma (,) and enclosed within square brackets ([ ]).</li>
<li>Tuple literals are enclosed by the parentheses ‘<strong>()</strong>‘ and each element is separated by the comma(,) and it is immutable.</li>
<li>Dictionary literals is enclosed by curly-braces ‘<strong>{}</strong>‘ and each pair is separated by the commas(,).</li>
<li>Set literals is the collection of the unordered data set and enclosed by the {} and each element is separated by the comma (,).</li>
</ul>
<h3 id="sample-code-4" style="text-align: justify;"><strong>Sample Code</strong></h3>
[pastacode lang=&#8221;python&#8221; manual=&#8221;%23%20Tuple%20literals%0A%0Aeven_number%20%3D%20(2%2C%204%2C%206%2C%208)%0A%0Aodd_number%20%3D%20(1%2C%203%2C%205%2C%207)%0A%0A%0A%0A%0Aprint(even_number)%0A%0Aprint(odd_number)&#8221; message=&#8221;&#8221; highlight=&#8221;&#8221; provider=&#8221;manual&#8221;/]
<h3 id="output-4" style="text-align: justify;"><strong>Output</strong></h3>
<p style="text-align: justify;"><img decoding="async" loading="lazy" class="alignnone size-full wp-image-4715" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/literal-collections.png" alt="" width="1405" height="322" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/literal-collections.png 1405w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/literal-collections-300x69.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/literal-collections-1024x235.png 1024w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/literal-collections-768x176.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/literal-collections-390x89.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/literal-collections-820x188.png 820w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/literal-collections-1180x270.png 1180w" sizes="(max-width: 1405px) 100vw, 1405px" /></p>
<h2 id="special-literals" style="text-align: justify;"><strong>Special Literals</strong></h2>
<ul style="text-align: justify;">
<li>Python contains one special literal where ‘None’ is used to define a null variable.</li>
<li>If <strong>‘None’ </strong>is compared with anything else other than a <strong>‘None’</strong>, it will return <strong>false</strong>.</li>
</ul>
<h3 id="sample-code-5" style="text-align: justify;"><strong>Sample Code</strong></h3>
[pastacode lang=&#8221;python&#8221; manual=&#8221;%23%20Special%20literals%0A%0Awater_remain%20%3D%20None%0A%0Aprint(water_remain)&#8221; message=&#8221;&#8221; highlight=&#8221;&#8221; provider=&#8221;manual&#8221;/]
<h3 id="output-5" style="text-align: justify;"><strong>Output</strong></h3>
<p style="text-align: justify;"><img decoding="async" loading="lazy" class="alignnone size-full wp-image-4716" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/special-literals.png" alt="" width="1398" height="191" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/special-literals.png 1398w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/special-literals-300x41.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/special-literals-1024x140.png 1024w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/special-literals-768x105.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/special-literals-390x53.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/special-literals-820x112.png 820w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/special-literals-1180x161.png 1180w" sizes="(max-width: 1398px) 100vw, 1398px" /></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/python/what-do-you-mean-by-python-literals/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What are the rules for a local and global variable in Python ?</title>
		<link>https://www.wikitechy.com/interview-questions/python/what-are-the-rules-for-a-local-and-global-variable-in-python/</link>
					<comments>https://www.wikitechy.com/interview-questions/python/what-are-the-rules-for-a-local-and-global-variable-in-python/#respond</comments>
		
		<dc:creator><![CDATA[webmaster]]></dc:creator>
		<pubDate>Tue, 16 Aug 2022 11:15:33 +0000</pubDate>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[example of global variable in python]]></category>
		<category><![CDATA[global variables python 3]]></category>
		<category><![CDATA[how to change global variable in function python]]></category>
		<category><![CDATA[local and global variables in c]]></category>
		<category><![CDATA[python global variable across modules]]></category>
		<category><![CDATA[python global variable in function]]></category>
		<category><![CDATA[python global variables best practices]]></category>
		<category><![CDATA[what are the rules for a local and global variable in python]]></category>
		<category><![CDATA[what is local variable in python]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=4705</guid>

					<description><![CDATA[In python local variables are those which are defined inside a function and its scope is limited to that function only whereas global variables are those which are not defined inside&#8230;]]></description>
										<content:encoded><![CDATA[<ul>
<li style="text-align: justify;">In python local variables are those which are defined inside a function and its scope is limited to that function only whereas global variables are those which are not defined inside any function and have a global scope.</li>
<li style="text-align: justify;">We can say that global variables are accessible throughout the program and inside every function whereas local variables are accessible only inside the function in which it was initialized.</li>
</ul>
<h2 id="local-variables" style="text-align: justify;">Local Variables</h2>
<ul>
<li style="text-align: justify;">Inside function local variables are those which are initialized and belongs only to that particular function.</li>
<li style="text-align: justify;">Then it cannot be accessed anywhere outside the function.</li>
</ul>
<h3 id="sample-code" style="text-align: justify;">Sample Code</h3>
[pastacode lang=&#8221;python&#8221; manual=&#8221;def%20f()%3A%0A%20%20%20%20%20%0A%20%20%20%20%23%20local%20variable%0A%20%20%20%20s%20%3D%20%22I%20love%20Wikitechy%22%0A%20%20%20%20print(s)%0A%20%0A%23%20Driver%20code%0Af()%0A&#8221; message=&#8221;&#8221; highlight=&#8221;&#8221; provider=&#8221;manual&#8221;/]
<h3 id="output" style="text-align: justify;">Output</h3>
<p style="text-align: justify;"><img decoding="async" loading="lazy" class="alignnone size-full wp-image-4706" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/local-variable.png" alt="" width="969" height="223" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/local-variable.png 969w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/local-variable-300x69.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/local-variable-768x177.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/local-variable-390x90.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/local-variable-820x189.png 820w" sizes="(max-width: 969px) 100vw, 969px" /></p>
<h2 id="global-variables" style="text-align: justify;">Global Variables</h2>
<ul style="text-align: justify;">
<li>Outside any function the global variables are those which are defined and which are accessible throughout the program.</li>
</ul>
<h3 id="sample-code-2" style="text-align: justify;">Sample Code</h3>
[pastacode lang=&#8221;python&#8221; manual=&#8221;%23%20This%20function%20uses%20global%20variable%20s%0Adef%20f()%3A%0A%20%20%20%20print(%22Inside%20Function%22%2C%20s)%0A%20%0A%23%20Global%20scope%0As%20%3D%20%22I%20love%20Wikitechy%22%0Af()%0Aprint(%22Outside%20Function%22%2C%20s)%0A&#8221; message=&#8221;&#8221; highlight=&#8221;&#8221; provider=&#8221;manual&#8221;/]
<h3 id="output-2" style="text-align: justify;">Output</h3>
<p style="text-align: justify;"><img decoding="async" loading="lazy" class="alignnone size-full wp-image-4707" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/global-variable.png" alt="" width="1027" height="255" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/global-variable.png 1027w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/global-variable-300x74.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/global-variable-1024x254.png 1024w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/global-variable-768x191.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/global-variable-390x97.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/global-variable-820x204.png 820w" sizes="(max-width: 1027px) 100vw, 1027px" /></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/python/what-are-the-rules-for-a-local-and-global-variable-in-python/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What are the benefits of using Python ?</title>
		<link>https://www.wikitechy.com/interview-questions/python/what-are-the-benefits-of-using-python/</link>
					<comments>https://www.wikitechy.com/interview-questions/python/what-are-the-benefits-of-using-python/#respond</comments>
		
		<dc:creator><![CDATA[webmaster]]></dc:creator>
		<pubDate>Tue, 16 Aug 2022 10:45:49 +0000</pubDate>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[advantages and disadvantages of functions in python]]></category>
		<category><![CDATA[Advantages and Disadvantages of Python]]></category>
		<category><![CDATA[advantages of python]]></category>
		<category><![CDATA[disadvantages of python]]></category>
		<category><![CDATA[features of python]]></category>
		<category><![CDATA[mention five benefits of using python]]></category>
		<category><![CDATA[mention five benefits of using pythonadvantages of python]]></category>
		<category><![CDATA[what are 3 benefits of python]]></category>
		<category><![CDATA[what are the benefits of functions in python]]></category>
		<category><![CDATA[what are the benefits of using functions in python]]></category>
		<category><![CDATA[what are the benefits of using python]]></category>
		<category><![CDATA[what are the benefits of using python programming language]]></category>
		<category><![CDATA[what are the disadvantages of python]]></category>
		<category><![CDATA[what are the major benefits of using sqlalchemy in python]]></category>
		<category><![CDATA[what is python what are the benefits of using python]]></category>
		<category><![CDATA[what is the benefits of python]]></category>
		<category><![CDATA[why python is better]]></category>
		<category><![CDATA[why python is useful]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=4702</guid>

					<description><![CDATA[Machine Learning It is simply making a computer perform a task without explicitly programming it. Nowadays in world every system that does well has a machine learning algorithm at its&#8230;]]></description>
										<content:encoded><![CDATA[<h3 id=""><img decoding="async" loading="lazy" class="alignnone size-full wp-image-4703 aligncenter" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/benefits-of-python.png" alt="" width="1526" height="679" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/benefits-of-python.png 1526w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/benefits-of-python-300x133.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/benefits-of-python-1024x456.png 1024w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/benefits-of-python-768x342.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/benefits-of-python-390x174.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/benefits-of-python-820x365.png 820w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/benefits-of-python-1180x525.png 1180w" sizes="(max-width: 1526px) 100vw, 1526px" /></h3>
<h3 id="machine-learning" style="text-align: justify;"><strong>Machine Learning</strong></h3>
<ul style="text-align: justify;">
<li>It is simply making a computer perform a task without explicitly programming it.</li>
<li>Nowadays in world every system that does well has a machine learning algorithm at its heart.</li>
<li>For example, Amazon Product recommendations, Google Search Engine, Facebook, LinkedIn, etc.</li>
<li>They are efficiently utilizing data collected from various channels which helps them to get a bigger picture of what should they do and what they are doing.</li>
</ul>
<h3 id="deep-learning" style="text-align: justify;"><strong>Deep Learning</strong></h3>
<ul style="text-align: justify;">
<li>It is a class of machine learning algorithms which uses multiple layers to progressively extract higher level features from the raw input.</li>
<li>For example, in image processing, lower layers may identify edges, while higher layers may identify the concepts relevant to a human such as letters or faces or digits.</li>
<li>Smart developers choose python because it is particularly suitable for Deep Learning projects because of its simple syntax and make the language accessible to non-programmers.<strong> </strong></li>
</ul>
<h3 id="predictive-analytics" style="text-align: justify;"><strong>Predictive Analytics</strong></h3>
<ul style="text-align: justify;">
<li>It is the branch of the advanced analytics which encompasses a variety of statistical techniques from machine learning, data mining and predictive modelling.</li>
</ul>
<h3 id="advanced-analytics" style="text-align: justify;"><strong>Advanced Analytics</strong></h3>
<ul style="text-align: justify;">
<li>It is a part of Data Science that uses high-level methods and their tools to focus on projecting future events, behaviors and trends.</li>
<li>For advanced analytics data mining is a key aspect of providing the raw data that will be used by both big data and predictive analytics.</li>
<li>Pandas is the Python Data Analysis Library, used for everything from importing data from Excel spreadsheets to processing sets for time-series analysis.</li>
</ul>
<h3 id="exploration-and-data-analytics" style="text-align: justify;"><strong>Exploration and Data Analytics</strong></h3>
<ul style="text-align: justify;">
<li>It is a phenomenon under data analysis used for gaining a better understanding of data aspects like variables, relationships that hold between them and main features of data.</li>
<li>Another side benefit of Exploration and Data Analytics is to refine your selection of feature variables that will be used later for machine learning.</li>
</ul>
<h3 id="data-science" style="text-align: justify;"><strong>Data Science</strong></h3>
<ul style="text-align: justify;">
<li>It is the study of the data which involves developing methods of recording, storing, and analyzing data to effectively extract useful information.</li>
</ul>
<h3 id="statistics" style="text-align: justify;"><strong>Statistics</strong></h3>
<ul>
<li style="text-align: justify;">Python is a general-purpose language with statistics modules in which R has more statistical analysis features than Python, and specialized syntaxes.</li>
</ul>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/python/what-are-the-benefits-of-using-python/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is slicing in Python ?</title>
		<link>https://www.wikitechy.com/interview-questions/python/what-is-slicing-in-python/</link>
					<comments>https://www.wikitechy.com/interview-questions/python/what-is-slicing-in-python/#respond</comments>
		
		<dc:creator><![CDATA[webmaster]]></dc:creator>
		<pubDate>Tue, 16 Aug 2022 10:31:28 +0000</pubDate>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[advance slicing in python]]></category>
		<category><![CDATA[how slicing work in python]]></category>
		<category><![CDATA[indexing and slicing in python]]></category>
		<category><![CDATA[negative slicing in python]]></category>
		<category><![CDATA[python slice class]]></category>
		<category><![CDATA[slicing in set python]]></category>
		<category><![CDATA[slicing list in python]]></category>
		<category><![CDATA[what is indexing and slicing in python]]></category>
		<category><![CDATA[what is list slicing in python]]></category>
		<category><![CDATA[what is slicing and indexing in python explain with an example]]></category>
		<category><![CDATA[what is slicing in programming]]></category>
		<category><![CDATA[what is slicing in python]]></category>
		<category><![CDATA[what is slicing in python explain briefly about it]]></category>
		<category><![CDATA[what is slicing in python with example]]></category>
		<category><![CDATA[what is string slicing in python]]></category>
		<category><![CDATA[what is string slicing in python with example]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=4698</guid>

					<description><![CDATA[In python slice () function is used to get a slice of elements from the collection of elements. It provides two overloaded slice functions there the first takes a single&#8230;]]></description>
										<content:encoded><![CDATA[<ul>
<li>In python slice () function is used to get a slice of elements from the collection of elements.</li>
<li>It provides two overloaded slice functions there the first takes a single argument while the second function takes three arguments and returns a slice object.</li>
<li>This slice object can be used to get a subsection of the collection.</li>
<li>Start parameter is used to starting index where the slicing of object starts.</li>
<li>Stop parameter is used to ending index where the slicing of objects stops.</li>
<li>Step parameter is an optional argument that determines the increment between each index for slicing.</li>
<li>It returns a sliced object containing elements in the given range only.</li>
</ul>
<p>&nbsp;</p>
<p><img decoding="async" loading="lazy" class="size-full wp-image-4699 aligncenter" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/slicing-function.png" alt="" width="1012" height="344" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/slicing-function.png 1012w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/slicing-function-300x102.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/slicing-function-768x261.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/slicing-function-390x133.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/slicing-function-820x279.png 820w" sizes="(max-width: 1012px) 100vw, 1012px" /></p>
<h3 id="sample-code"><strong>Sample Code</strong></h3>
[pastacode lang=&#8221;python&#8221; manual=&#8221;%23%C2%A0Python%C2%A0slice()%C2%A0function%C2%A0example%C2%A0%C2%A0%0A%0A%23%C2%A0Calling%C2%A0function%C2%A0%C2%A0%0A%0Atup%C2%A0%3D%C2%A0(45%2C68%2C955%2C1214%2C41%2C558%2C636%2C66)%C2%A0%C2%A0%0A%0Aslic%C2%A0%3D%C2%A0slice(0%2C10%2C3)%C2%A0%23%C2%A0returns%C2%A0slice%C2%A0object%C2%A0%C2%A0%0A%0Aslic2%C2%A0%3D%C2%A0slice(-1%2C0%2C-3)%C2%A0%23%C2%A0returns%C2%A0slice%C2%A0object%C2%A0%C2%A0%0A%0A%23%C2%A0We%C2%A0can%C2%A0use%C2%A0this%C2%A0slice%C2%A0object%C2%A0to%C2%A0get%C2%A0elements%C2%A0%C2%A0%0A%0Astr2%C2%A0%3D%C2%A0tup%5Bslic%5D%C2%A0%C2%A0%0A%0Astr3%C2%A0%3D%C2%A0tup%5Bslic2%5D%C2%A0%23%C2%A0returns%C2%A0elements%C2%A0in%C2%A0reverse%C2%A0order%C2%A0%C2%A0%0A%0A%23%C2%A0Displaying%C2%A0result%C2%A0%C2%A0%0A%0Aprint(str2)%C2%A0%C2%A0%0A%0Aprint(str3)%0A%0A%C2%A0&#8243; message=&#8221;&#8221; highlight=&#8221;&#8221; provider=&#8221;manual&#8221;/]
<h3 id="output"><strong>Output</strong></h3>
<p><img decoding="async" loading="lazy" class="alignnone size-full wp-image-4700" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/slicing-method.png" alt="" width="1445" height="160" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/slicing-method.png 1445w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/slicing-method-300x33.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/slicing-method-1024x113.png 1024w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/slicing-method-768x85.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/slicing-method-390x43.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/slicing-method-820x91.png 820w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/slicing-method-1180x131.png 1180w" sizes="(max-width: 1445px) 100vw, 1445px" /></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/python/what-is-slicing-in-python/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is Tuple in python ?</title>
		<link>https://www.wikitechy.com/interview-questions/python/what-is-tuple-in-python/</link>
					<comments>https://www.wikitechy.com/interview-questions/python/what-is-tuple-in-python/#respond</comments>
		
		<dc:creator><![CDATA[webmaster]]></dc:creator>
		<pubDate>Tue, 16 Aug 2022 10:21:41 +0000</pubDate>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[list vs tuple in python]]></category>
		<category><![CDATA[python tuple append]]></category>
		<category><![CDATA[python tuple index]]></category>
		<category><![CDATA[tuple example]]></category>
		<category><![CDATA[tuple in python example]]></category>
		<category><![CDATA[tuple is mutable or immutable]]></category>
		<category><![CDATA[tuple pronunciation]]></category>
		<category><![CDATA[tuple vs list]]></category>
		<category><![CDATA[what is a tuple object in python what is named tuple in python what is the difference between list tuple and set in python]]></category>
		<category><![CDATA[what is difference between list and tuple in python]]></category>
		<category><![CDATA[what is list and tuple in python]]></category>
		<category><![CDATA[what is list tuple and dictionary in python]]></category>
		<category><![CDATA[what is tuple in python]]></category>
		<category><![CDATA[what is tuple in python 3]]></category>
		<category><![CDATA[what is tuple unpacking in python]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=4694</guid>

					<description><![CDATA[In python Tuple is used to store the sequence of immutable Python objects. It is similar to lists since the value of the items stored in the list can be&#8230;]]></description>
										<content:encoded><![CDATA[<ul>
<li style="text-align: justify;">In python Tuple is used to store the sequence of immutable Python objects.</li>
<li style="text-align: justify;">It is similar to lists since the value of the items stored in the list can be changed.</li>
<li style="text-align: justify;">If the tuple is immutable then the value of the items stored in the tuple cannot be changed.</li>
<li style="text-align: justify;">It can be written as the collection of comma-separated (,) values enclosed with the small () brackets.</li>
<li style="text-align: justify;">The parentheses are optional but it is good practice to use.</li>
<li style="text-align: justify;">A tuple is indexed in the same way as the lists then items in the tuples can be accessed by using their specific index value.</li>
<li style="text-align: justify;">Using negative indexing tuple element can also access then index of -1 denotes the rightmost element and -2 to the second last item and so on.</li>
<li style="text-align: justify;">The tuple items cannot be deleted by using the <strong>del</strong>keyword as tuples are immutable, unlike lists.</li>
<li style="text-align: justify;">We can use del keyword with the tuple name, to delete an entire tuple.</li>
<li style="text-align: justify;">Concatenation (+), Membership (in), repetition (*) are the operators works in the same way as they work with the list.</li>
<li style="text-align: justify;">Using tuple instead of list gives us a clear idea that tuple data is constant and must not be changed.</li>
<li style="text-align: justify;">It can simulate a dictionary without keys and it can be used a dictionary which is consider the following nested structure.</li>
</ul>
<h3 id="sample-code" style="text-align: justify;"><strong>Sample Code</strong></h3>
[pastacode lang=&#8221;python&#8221; manual=&#8221;tup1%20%3D%20(%22Wikitechy%22)%20%0A%20%20%20%20%20%20%20%20print(type(tup1))%20%20%0A%20%20%20%20%20%20%20%20%23Creating%20a%20tuple%20with%20single%20element%20%20%20%0A%0Atup2%20%3D%20(%22Wikitechy%22%2C)%20%20%0A%0Aprint(type(tup2))%20%20%0A&#8221; message=&#8221;&#8221; highlight=&#8221;&#8221; provider=&#8221;manual&#8221;/]
<h3 id="output" style="text-align: justify;"><strong>Output</strong></h3>
<p style="text-align: justify;"><img decoding="async" loading="lazy" class="alignnone size-full wp-image-4695" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/tuple-function.png" alt="" width="1487" height="260" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/tuple-function.png 1487w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/tuple-function-300x52.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/tuple-function-1024x179.png 1024w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/tuple-function-768x134.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/tuple-function-390x68.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/tuple-function-820x143.png 820w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/tuple-function-1180x206.png 1180w" sizes="(max-width: 1487px) 100vw, 1487px" /></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/python/what-is-tuple-in-python/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is the namespace in Python ?</title>
		<link>https://www.wikitechy.com/interview-questions/python/what-is-the-namespace-in-python/</link>
					<comments>https://www.wikitechy.com/interview-questions/python/what-is-the-namespace-in-python/#respond</comments>
		
		<dc:creator><![CDATA[webmaster]]></dc:creator>
		<pubDate>Tue, 16 Aug 2022 10:15:34 +0000</pubDate>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[enclosing namespace in python]]></category>
		<category><![CDATA[example for namespace in python]]></category>
		<category><![CDATA[explain namespaces in python]]></category>
		<category><![CDATA[namespace in python]]></category>
		<category><![CDATA[namespace in python hackerrank solution]]></category>
		<category><![CDATA[order of namespace in python]]></category>
		<category><![CDATA[python list namespaces]]></category>
		<category><![CDATA[python namespace object]]></category>
		<category><![CDATA[types of namespaces in python]]></category>
		<category><![CDATA[use of namespace in python]]></category>
		<category><![CDATA[what is global namespace in python]]></category>
		<category><![CDATA[what is namespace in c++ with example]]></category>
		<category><![CDATA[what is namespace in python with example]]></category>
		<category><![CDATA[what is scope in python]]></category>
		<category><![CDATA[what is the default namespace a program will run in python]]></category>
		<category><![CDATA[what is the namespace in python]]></category>
		<category><![CDATA[what is the order of namespace in which python looks for an identifier]]></category>
		<category><![CDATA[what is the use of namespace in python]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=4690</guid>

					<description><![CDATA[In python a namespace is a system that has a unique name for each and every object. An object might be a method or a variable and python itself maintains a&#8230;]]></description>
										<content:encoded><![CDATA[<ul>
<li style="text-align: justify;">In python a namespace is a system that has a unique name for each and every object.</li>
<li style="text-align: justify;">An object might be a method or a variable and python itself maintains a namespace in the form of a Python dictionary.</li>
<li style="text-align: justify;">Inside every directory that one can have multiple directories having a file with the same name.</li>
<li style="text-align: justify;">The role of a namespace is like a surname, in real time example.</li>
<li style="text-align: justify;">Python interpreter understands what exact method or variable one is trying to point to in the code, depending upon the namespace, on similar lines.</li>
<li style="text-align: justify;">In this Name which means name, a unique identifier and Space which talks something related to scope.</li>
<li style="text-align: justify;">In python a name might be of any method or variable and space depends upon the location from where is trying to access a variable or a method.</li>
<li style="text-align: justify;">The namespace consists of three types, they are global namespace, built-in namespace, local namespace.</li>
</ul>
<p><img decoding="async" loading="lazy" class="alignnone size-full wp-image-4691" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/types-of-namespaces.png" alt="" width="748" height="663" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/types-of-namespaces.png 748w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/types-of-namespaces-300x266.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/types-of-namespaces-390x346.png 390w" sizes="(max-width: 748px) 100vw, 748px" /></p>
<ul>
<li style="text-align: justify;">If python interpreter runs solely without any user-defined modules, methods, classes, etc. Some functions like print (), id () is always present, these are built-in namespaces.</li>
<li style="text-align: justify;">If user creates a module, a global namespace gets created, later the creation of local functions creates the local namespace.</li>
<li style="text-align: justify;">The global namespace encompasses the local namespace and built-in namespace encompasses global namespace.</li>
<li style="text-align: justify;">If scope of an object ends, the lifetime of that namespace comes to an end, so the lifetime of a namespace depends upon the scope of objects.</li>
<li style="text-align: justify;">Hence there is no possible to access the inner namespace’s objects from an outer namespace.</li>
</ul>
<h2 id="sample-code">Sample Code</h2>
[pastacode lang=&#8221;python&#8221; manual=&#8221;%23%20Python%20program%20processing%0A%23%20global%20variable%0A%20%0Acount%20%3D%2010%0Adef%20some_method%20()%3A%0A%20%20%20%20global%20count%0A%20%20%20%20count%20%3D%20count%20%2B%2010%0A%20%20%20%20print(count)%0Asome_method%20()%0A&#8221; message=&#8221;&#8221; highlight=&#8221;&#8221; provider=&#8221;manual&#8221;/]
<h2 id="output">Output</h2>
<p><img decoding="async" loading="lazy" class="alignnone size-full wp-image-4692" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/namespace.png" alt="" width="965" height="242" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/namespace.png 965w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/namespace-300x75.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/namespace-768x193.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/namespace-390x98.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/namespace-820x206.png 820w" sizes="(max-width: 965px) 100vw, 965px" /></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/python/what-is-the-namespace-in-python/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is Scope in Python ?</title>
		<link>https://www.wikitechy.com/interview-questions/python/what-is-scope-in-python/</link>
					<comments>https://www.wikitechy.com/interview-questions/python/what-is-scope-in-python/#respond</comments>
		
		<dc:creator><![CDATA[webmaster]]></dc:creator>
		<pubDate>Tue, 16 Aug 2022 07:57:34 +0000</pubDate>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[how many global scopes are there in a python program]]></category>
		<category><![CDATA[local and global scope in python]]></category>
		<category><![CDATA[python scope in future]]></category>
		<category><![CDATA[python scope in india]]></category>
		<category><![CDATA[python scope rules]]></category>
		<category><![CDATA[types of scope in python]]></category>
		<category><![CDATA[what is built in scope in python]]></category>
		<category><![CDATA[what is global scope in python]]></category>
		<category><![CDATA[what is local scope in python]]></category>
		<category><![CDATA[what is scope in python]]></category>
		<category><![CDATA[what is scope resolution in python]]></category>
		<category><![CDATA[what is scope what is the scope resolving rule in python]]></category>
		<category><![CDATA[what is the order of resolving scope of a name in a python program]]></category>
		<category><![CDATA[what is the scope of global variable in python]]></category>
		<category><![CDATA[what is the scope of python in future]]></category>
		<category><![CDATA[what is the scope of python in india]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=4686</guid>

					<description><![CDATA[Variables in python are the containers for storing data values. It gets mapped to that instance, they are reference, or pointers, to an object in memory which means that whenever&#8230;]]></description>
										<content:encoded><![CDATA[<ul>
<li>Variables in python are the containers for storing data values.</li>
<li>It gets mapped to that instance, they are reference, or pointers, to an object in memory which means that whenever a variable is assigned to an instance.</li>
<li>Python is not statically typed, unlike other languages like C/C++/JAVA.</li>
<li>Scope of a variable is the location where we can find a variable and also access it if required.</li>
<li>In python there are four types of scopes they are, Local Scope, Global Scope, Enclosing Scope and Built-in Scope.</li>
</ul>
<p><img decoding="async" loading="lazy" class="alignnone size-full wp-image-4688" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/scopes-in-python.png" alt="" width="1029" height="1009" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/scopes-in-python.png 1029w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/scopes-in-python-300x294.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/scopes-in-python-1024x1004.png 1024w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/scopes-in-python-768x753.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/scopes-in-python-390x382.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/scopes-in-python-820x804.png 820w" sizes="(max-width: 1029px) 100vw, 1029px" /></p>
<p>&nbsp;</p>
<ul>
<li>Global variables are the ones that are defined and declared outside, not specified to any function.</li>
<li>In current function a local scope refers to the local objects were available.</li>
<li>Global scope refers to the objects available throughout the code execution since their inception.</li>
<li>In program a module-level scope refers to the global objects of the current module accessible.</li>
<li>In program an <strong>outermost scope </strong>refers to all the built-in names callable and objects in this scope are searched last to find the name referenced.</li>
</ul>
<h3 id="sample-code-global-scope"><strong>Sample Code : Global Scope</strong></h3>
[pastacode lang=&#8221;python&#8221; manual=&#8221;%23%20This%20function%20modifies%20global%20variable%20&#8217;s&#8217;%0Adef%20f()%3A%0A%20%20%20%20global%20s%0A%20%20%20%20print(s)%0A%20%20%20%20s%20%3D%20%22Look%20for%20Wikitechy%20Python%20Section%22%0A%20%20%20%20print(s)%0A%20%20%20%0A%23%20Global%20Scope%0As%20%3D%20%22Python%20is%20great%20!%22%0Af()%0Aprint(s)%0A&#8221; message=&#8221;&#8221; highlight=&#8221;&#8221; provider=&#8221;manual&#8221;/]
<h3 id="output">Output</h3>
<p><img decoding="async" loading="lazy" class="alignnone size-full wp-image-4687" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/global-scope.png" alt="" width="1258" height="337" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/global-scope.png 1258w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/global-scope-300x80.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/global-scope-1024x274.png 1024w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/global-scope-768x206.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/global-scope-390x104.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/global-scope-820x220.png 820w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/global-scope-1180x316.png 1180w" sizes="(max-width: 1258px) 100vw, 1258px" /></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/python/what-is-scope-in-python/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What are the applications of Python ?</title>
		<link>https://www.wikitechy.com/interview-questions/python/what-are-the-applications-of-python/</link>
					<comments>https://www.wikitechy.com/interview-questions/python/what-are-the-applications-of-python/#respond</comments>
		
		<dc:creator><![CDATA[webmaster]]></dc:creator>
		<pubDate>Tue, 16 Aug 2022 07:34:20 +0000</pubDate>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[applications of python]]></category>
		<category><![CDATA[applications of python in real life]]></category>
		<category><![CDATA[features and applications of python]]></category>
		<category><![CDATA[features of python]]></category>
		<category><![CDATA[python applications in real world]]></category>
		<category><![CDATA[top 10 uses of python]]></category>
		<category><![CDATA[what are different applications of python give examples]]></category>
		<category><![CDATA[what are the applications of python]]></category>
		<category><![CDATA[what are the applications of python language]]></category>
		<category><![CDATA[what are the common applications of python language]]></category>
		<category><![CDATA[what are the different applications of python what are the main applications of python]]></category>
		<category><![CDATA[what are the features and applications of python]]></category>
		<category><![CDATA[what is python]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=4683</guid>

					<description><![CDATA[Python is used for its general-purpose nature, which makes it applicable in almost every domain of software development. Python is the fastest-growing programming language and can develop any application. Web&#8230;]]></description>
										<content:encoded><![CDATA[<ul>
<li style="text-align: justify;">Python is used for its general-purpose nature, which makes it applicable in almost every domain of software development.</li>
<li style="text-align: justify;">Python is the fastest-growing programming language and can develop any application.</li>
</ul>
<p style="text-align: justify;"><img decoding="async" loading="lazy" class="alignnone size-full wp-image-4684" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/applications-of-python.png" alt="" width="1044" height="1056" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/applications-of-python.png 1044w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/applications-of-python-297x300.png 297w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/applications-of-python-1012x1024.png 1012w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/applications-of-python-768x777.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/applications-of-python-80x80.png 80w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/applications-of-python-390x394.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/applications-of-python-820x829.png 820w" sizes="(max-width: 1044px) 100vw, 1044px" /></p>
<h2 id="web-applications" style="text-align: justify;"><strong>Web Applications</strong></h2>
<ul style="text-align: justify;">
<li>Python is used to develop application and it provides libraries to handle internet protocols such as HTML and XML, JSON, Email processing, request, beautiful Soup, Feed parser, etc.</li>
<li>Python provides many useful frameworks like Django &amp; Pyramid framework is used for heavy applications, Flask &amp; Bottle is used for Micro-framework, Plane &amp; Django CMS framework is used for Advance Content Management.</li>
</ul>
<h2 id="desktop-gui-applications" style="text-align: justify;"><strong>Desktop GUI Applications</strong></h2>
<ul style="text-align: justify;">
<li>The GUI otherwise known as Graphical User Interface which provides a smooth interaction to any applications.</li>
<li>Python provides Tk GUI library to develop a user interface.</li>
<li>The popular Graphical User Interface libraries like Tkinter or Tk, wxWidgetM, Kivy, PyQt or Pyside.</li>
</ul>
<h2 id="console-based-applications" style="text-align: justify;"><strong>Console-based Applications</strong></h2>
<ul style="text-align: justify;">
<li>In Console-based applications run from the command-line or shell and in which programs are use command to execute.</li>
<li>In old generation of computers this kind of application was more popular.</li>
<li>Python is famous for having REPL, which means Read Eval Print Loop that makes most suitable language for the command-line applications.</li>
</ul>
<h2 id="software-development" style="text-align: justify;"><strong>Software Development</strong></h2>
<ul style="text-align: justify;">
<li>Python is useful for the software development process and works as a support language.</li>
<li>It can be used to build control and management, testing, etc.</li>
<li>In this software development SCons is used to build control.</li>
<li>In this Buildbot and Apache gumps are used for automated continuous compilation and testing.</li>
</ul>
<h2 id="scientific-numeric" style="text-align: justify;"><strong>Scientific &amp; Numeric</strong></h2>
<ul style="text-align: justify;">
<li>It is the era of Artificial intelligence where the machine can perform the task the same as the human.</li>
<li>Python language is most suitable language for machine learning or Artificial intelligence.</li>
<li>It consists of many scientific and mathematical libraries, which makes easy to solve complex calculations.</li>
<li>Python has many libraries for scientific and numeric such as Scipy, Scikit-learn, Numpy, Pandas, Matplotib, etc.</li>
</ul>
<h2 id="business-applications" style="text-align: justify;"><strong>Business Applications</strong></h2>
<ul style="text-align: justify;">
<li>Business Applications differ from standard applications for example, E-commerce and ERP.</li>
<li>This kind of application requires scalability, readability, extensively and it requires all these features.</li>
<li>Python provides Tryton platform which is used to develop the business application.</li>
</ul>
<h2 id="audio-or-video-based-applications" style="text-align: justify;"><strong>Audio or Video-based Applications</strong></h2>
<ul style="text-align: justify;">
<li>Python can be used to create multimedia applications and it is flexible to perform multiple tasks.</li>
<li>Some multimedia applications which are made by using Python are TimPlayer, cplay, etc. and multimedia libraries like Gstreamer, Pyglet, QT phonon.</li>
</ul>
<h2 id="3d-cad-applications" style="text-align: justify;"><strong>3D CAD Applications</strong></h2>
<ul style="text-align: justify;">
<li>The Computer Aided Design (CAD) is used to design engineering related architecture.</li>
<li>It is used to develop the 3D representation of a part of a system and create a 3D CAD application by using the following functionalities like Fandango, CAMVOX, HeeksCNC, AnyCAD, RCAM.</li>
</ul>
<h2 id="enterprise-applications" style="text-align: justify;"><strong>Enterprise Applications</strong></h2>
<ul style="text-align: justify;">
<li>Python can be used to create applications that can be used within an organization or an enterprise and some real-time applications are Tryton, OpenERP, Picalo, etc.</li>
</ul>
<h2 id="image-processing-applications" style="text-align: justify;"><strong>Image Processing Applications</strong></h2>
<ul>
<li style="text-align: justify;">Python contains many libraries that are used to work with the image and it can be manipulated according to our requirements.</li>
<li style="text-align: justify;">Some libraries of image processing like OpenCV, Pillow, SimpelITK.</li>
</ul>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/python/what-are-the-applications-of-python/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What are the advantages and disadvantages of Python ?</title>
		<link>https://www.wikitechy.com/interview-questions/python/what-are-the-advantages-and-disadvantages-of-python/</link>
					<comments>https://www.wikitechy.com/interview-questions/python/what-are-the-advantages-and-disadvantages-of-python/#respond</comments>
		
		<dc:creator><![CDATA[webmaster]]></dc:creator>
		<pubDate>Sat, 13 Aug 2022 10:39:15 +0000</pubDate>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[Advantages and Disadvantages of Python]]></category>
		<category><![CDATA[Advantages and Disadvantages of Python Programming]]></category>
		<category><![CDATA[Python Advantages & Disadvantages]]></category>
		<category><![CDATA[Python Advantages and Disadvantages]]></category>
		<category><![CDATA[Python Language advantages and applications]]></category>
		<category><![CDATA[what are the advantages and disadvantages of python]]></category>
		<category><![CDATA[what are the advantages and disadvantages of python programming language]]></category>
		<category><![CDATA[what are the advantages and disadvantages of working in interactive mode in python]]></category>
		<category><![CDATA[what are the advantages and disadvantages of working in script mode in python]]></category>
		<category><![CDATA[what are the advantages of module]]></category>
		<category><![CDATA[what are the benefits of using python]]></category>
		<category><![CDATA[what are the disadvantages of coding]]></category>
		<category><![CDATA[what are the disadvantages of programming]]></category>
		<category><![CDATA[what do python programmers do]]></category>
		<category><![CDATA[what is module and package in python]]></category>
		<category><![CDATA[what is module and package in python explain with example]]></category>
		<category><![CDATA[what is python language and its advantages]]></category>
		<category><![CDATA[what is the advantages of python]]></category>
		<category><![CDATA[what is the difference between function and module in python]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=4679</guid>

					<description><![CDATA[Advantages of Python Improved Productivity Python is a very productive language and they don’t need to spend too much time in understanding the behavior or syntax of the programming language.&#8230;]]></description>
										<content:encoded><![CDATA[<h2 id="advantages-of-python" style="text-align: justify;"><strong>Advantages of Python</strong></h2>
<p><img decoding="async" loading="lazy" class="alignnone size-full wp-image-4680 aligncenter" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/advantages-of-python.png" alt="" width="1389" height="1015" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/advantages-of-python.png 1389w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/advantages-of-python-300x219.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/advantages-of-python-1024x748.png 1024w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/advantages-of-python-768x561.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/advantages-of-python-390x285.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/advantages-of-python-820x599.png 820w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/advantages-of-python-1180x862.png 1180w" sizes="(max-width: 1389px) 100vw, 1389px" /></p>
<h3 id="improved-productivity" style="text-align: justify;"><strong>Improved Productivity</strong></h3>
<ul style="text-align: justify;">
<li>Python is a very productive language and they don’t need to spend too much time in understanding the behavior or syntax of the programming language.</li>
</ul>
<h3 id="interpreted-language" style="text-align: justify;"><strong>Interpreted Language</strong></h3>
<ul style="text-align: justify;">
<li>It is an interpreted language which means that Python directly executes the code line by line.</li>
</ul>
<h3 id="dynamically-typed" style="text-align: justify;"><strong>Dynamically Typed</strong></h3>
<ul style="text-align: justify;">
<li>Python doesn’t know the type of variable until we run the code and during execution it automatically assigns the data type.</li>
</ul>
<h3 id="free-and-open-source" style="text-align: justify;"><strong>Free and Open-Source</strong></h3>
<ul style="text-align: justify;">
<li>Python comes under the OSI approved open-source license then it makes free to distribute and use.</li>
<li>We can download the source code, modify it and even distribute your version of Python.</li>
</ul>
<h3 id="vast-libraries-support" style="text-align: justify;"><strong>Vast Libraries Support</strong></h3>
<ul style="text-align: justify;">
<li>The standard library of Python is huge, we can find almost all the functions needed for our task so, we don’t have to depend on external libraries.</li>
</ul>
<h3 id="portability" style="text-align: justify;"><strong>Portability</strong></h3>
<ul style="text-align: justify;">
<li>To run program in many languages like C/C++, we need to change our code in different platforms.</li>
<li>In python we only write once and executes it anywhere.</li>
</ul>
<h2 id="disadvantages-of-python" style="text-align: justify;"><strong>Disadvantages of Python</strong></h2>
<p><img decoding="async" loading="lazy" class="alignnone size-full wp-image-4681 aligncenter" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/disadvantages-of-python.png" alt="" width="1307" height="787" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/disadvantages-of-python.png 1307w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/disadvantages-of-python-300x181.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/disadvantages-of-python-1024x617.png 1024w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/disadvantages-of-python-768x462.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/disadvantages-of-python-390x235.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/disadvantages-of-python-820x494.png 820w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/disadvantages-of-python-1180x711.png 1180w" sizes="(max-width: 1307px) 100vw, 1307px" /></p>
<h3 id="slow-speed" style="text-align: justify;"><strong>Slow Speed</strong></h3>
<ul style="text-align: justify;">
<li>Python is an interpreted language and dynamically typed language where the line-by-line execution of code often leads to slow execution.</li>
</ul>
<h3 id="not-memory-efficient" style="text-align: justify;"><strong>Not Memory Efficient</strong></h3>
<ul style="text-align: justify;">
<li>Python has to do a little tradeoff, to provide simplicity to the developer.</li>
<li>This programming language uses a large amount of memory and it can be a disadvantage while building applications when we prefer memory optimization.</li>
</ul>
<h3 id="weak-in-mobile-computing" style="text-align: justify;"><strong>Weak in Mobile Computing</strong></h3>
<ul style="text-align: justify;">
<li>In server-side programming python is generally is used.</li>
<li>Compare to other programming languages it has slow processing power and it is not memory efficient.</li>
</ul>
<h3 id="database-access" style="text-align: justify;"><strong>Database Access</strong></h3>
<ul style="text-align: justify;">
<li>Python is easy and stress-free programming and it lacks behind, when we are interacting with the database.</li>
<li>The Python’s database access layer is primitive and underdeveloped in comparison to the popular technologies like <strong>JDBC</strong>and <strong>ODBC</strong>.</li>
</ul>
<h3 id="runtime-errors" style="text-align: justify;"><strong>Runtime Errors</strong></h3>
<ul style="text-align: justify;">
<li>The data type of a variable can change at anytime because python is dynamically typed language.</li>
<li>In future a variable containing integer number may hold a string which can lead to <strong>Runtime Errors</strong>.</li>
</ul>
<p style="text-align: justify;">
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/python/what-are-the-advantages-and-disadvantages-of-python/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What are modules and packages in Python ?</title>
		<link>https://www.wikitechy.com/interview-questions/python/what-are-modules-and-packages-in-python/</link>
					<comments>https://www.wikitechy.com/interview-questions/python/what-are-modules-and-packages-in-python/#respond</comments>
		
		<dc:creator><![CDATA[webmaster]]></dc:creator>
		<pubDate>Sat, 13 Aug 2022 10:19:38 +0000</pubDate>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[difference between python modules and packages]]></category>
		<category><![CDATA[modules and packages]]></category>
		<category><![CDATA[modules and packages in python]]></category>
		<category><![CDATA[modules vs packages in python]]></category>
		<category><![CDATA[packages in python with example]]></category>
		<category><![CDATA[python modules and packages]]></category>
		<category><![CDATA[python modules and packages list]]></category>
		<category><![CDATA[what are modules and packages in python]]></category>
		<category><![CDATA[what is module in python]]></category>
		<category><![CDATA[what is packages in python]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=4674</guid>

					<description><![CDATA[It is often that programmers and many coders may confuse between a module and a package. Generally, arises when it becomes hard to identify when and where a package or&#8230;]]></description>
										<content:encoded><![CDATA[<ul>
<li style="text-align: justify;">It is often that programmers and many coders may confuse between a module and a package.</li>
<li style="text-align: justify;">Generally, arises when it becomes hard to identify when and where a package or module should be implemented.</li>
<li style="text-align: justify;">In python programming language module and packages will make it easy for the programmers to work more professionally while dealing with both modules and packages.</li>
</ul>
<h2 id="modules" style="text-align: justify;"><strong>Modules</strong></h2>
<ul style="text-align: justify;">
<li>A module is a pythonic statement that containing different functions.</li>
<li>Modules are act as a pre-defined library in the script, which is accessible to both the programmers as well as the user.</li>
<li>These modules are also store pre-defined functions from the library where the code is being executed.</li>
</ul>
<h3 id="sample-code" style="text-align: justify;"><strong>Sample Code</strong></h3>
[pastacode lang=&#8221;python&#8221; manual=&#8221;%23%20importing%20the%20library%20and%20module%20%20%0Aimport%20math%20%20%0Afrom%20math%20import%20pow%20%20%0A%23%20using%20the%20pow()%20function%20%20%0Apow(3%2C%205)%20%20%0A%23%20printing%20pow()%20%20%0Aprint(pow)%20%20%0A%0A&#8221; message=&#8221;&#8221; highlight=&#8221;&#8221; provider=&#8221;manual&#8221;/]
<h3 id="output" style="text-align: justify;"><strong>Output</strong><img decoding="async" loading="lazy" class="alignnone size-full wp-image-4675" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/modules.png" alt="" width="1434" height="169" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/modules.png 1434w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/modules-300x35.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/modules-1024x121.png 1024w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/modules-768x91.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/modules-390x46.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/modules-820x97.png 820w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/modules-1180x139.png 1180w" sizes="(max-width: 1434px) 100vw, 1434px" /></h3>
<h2 id="packages" style="text-align: justify;"><strong>Packages</strong></h2>
<ul style="text-align: justify;">
<li>A package is considered as a collection of tools that allows the programmers to initiate the code.</li>
<li>Python package acts as a user-variable interface to any source code.</li>
<li>At runtime this feature allows a Python package to work at a defined time for any functional script.</li>
</ul>
<h3 id="sample-code-2" style="text-align: justify;"><strong>Sample Code</strong></h3>
[pastacode lang=&#8221;python&#8221; manual=&#8221;%23%20importing%20the%20package%20%20%0Aimport%20math%20%20%0A%23%20printing%20a%20statement%20%20%0Aprint(%22We%20have%20imported%20the%20math%20package%22)%20%20%0A%0A&#8221; message=&#8221;&#8221; highlight=&#8221;&#8221; provider=&#8221;manual&#8221;/]
<h3 id="output-2" style="text-align: justify;"><strong>Output</strong></h3>
<p style="text-align: justify;"><img decoding="async" loading="lazy" class="alignnone size-full wp-image-4676" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/packages.png" alt="" width="1443" height="170" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/packages.png 1443w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/packages-300x35.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/packages-1024x121.png 1024w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/packages-768x90.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/packages-390x46.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/packages-820x97.png 820w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/packages-1180x139.png 1180w" sizes="(max-width: 1443px) 100vw, 1443px" /></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/python/what-are-modules-and-packages-in-python/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What are Lambda functions in python ?</title>
		<link>https://www.wikitechy.com/interview-questions/python/what-are-lambda-functions-in-python/</link>
					<comments>https://www.wikitechy.com/interview-questions/python/what-are-lambda-functions-in-python/#respond</comments>
		
		<dc:creator><![CDATA[webmaster]]></dc:creator>
		<pubDate>Sat, 13 Aug 2022 09:06:25 +0000</pubDate>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[anonymous function in python]]></category>
		<category><![CDATA[aws lambda function in python]]></category>
		<category><![CDATA[lambda for loop python]]></category>
		<category><![CDATA[lambda function aws]]></category>
		<category><![CDATA[lambda function in python]]></category>
		<category><![CDATA[lambda function in python list]]></category>
		<category><![CDATA[lambda functions in python]]></category>
		<category><![CDATA[lambda functions with practical examples in python]]></category>
		<category><![CDATA[python anonymous/lambda function]]></category>
		<category><![CDATA[python lambda]]></category>
		<category><![CDATA[python lambda functions]]></category>
		<category><![CDATA[python lambda functions with examples]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=4668</guid>

					<description><![CDATA[In python programming language lambda function is an anonymous function or a function having no name. It becomes a small and restricted function having no more than one line. A&#8230;]]></description>
										<content:encoded><![CDATA[<ul>
<li style="text-align: justify;">In python programming language lambda function is an anonymous function or a function having no name.</li>
<li style="text-align: justify;">It becomes a small and restricted function having no more than one line.</li>
<li style="text-align: justify;">A lambda function can have multiple arguments with one expression, like a normal function.</li>
<li style="text-align: justify;">In python lambda expressions or lambda forms are utilized to construct anonymous functions.</li>
<li style="text-align: justify;">Here we use the lambda keyword just as we use def to define normal functions.</li>
<li style="text-align: justify;">In python every anonymous function we define will have 3 essential parts, they are lambda keyword, parameters, function body.</li>
<li style="text-align: justify;">This function can have any number of parameters, but it contains only one expression.</li>
<li style="text-align: justify;">A lambda function is written in a single line of code and can also be invoked immediately.</li>
<li style="text-align: justify;">It is not exactly an inline function, but it simulates inline functions of C and C++.</li>
</ul>
<h2 id="sample-code">Sample Code</h2>
[pastacode lang=&#8221;python&#8221; manual=&#8221;%23%20a%20and%20b%20are%20the%20arguments%20and%20a*b%20is%20the%20expression%20which%20gets%20evaluated%20and%20eturned.%20%20%20%20%0Ax%20%3D%20lambda%20a%2Cb%3A%20a*b%20%20%0Aprint(%22mul%20%3D%20%22%2C%20x(20%2C10))%20%20%20%0Amul%20%3D%20%20200%20%20%0A%23the%20function%20table(n)%20prints%20the%20table%20of%20n%20%20%20%20%0Adef%20table(n)%3A%20%20%20%20%0A%20%20%20%20return%20lambda%20a%3Aa*n%20%23%20a%20will%20contain%20the%20iteration%20variable%20i%20and%20a%20multiple%20of%20n%20is%20returned%20at%20each%20function%20call%20%20%20%20%0An%20%3D%20int(input(%22Enter%20the%20number%3A%22))%20%20%20%20%0Ab%20%3D%20table(n)%20%23the%20entered%20number%20is%20passed%20into%20the%20function%20table.%20b%20will%20containa%20lambda%20function%20which%20is%20called%20again%20and%20again%20with%20the%20iteration%20variable%20i%20%20%20%20%0Afor%20i%20in%20range(1%2C11)%3A%20%20%20%20%0A%20%20%20%20print(n%2C%22X%22%2Ci%2C%22%3D%22%2Cb(i))%20%23the%20lambda%20function%20b%20is%20called%20with%20the%20iteration%20variable%20i%0A&#8221; message=&#8221;&#8221; highlight=&#8221;&#8221; provider=&#8221;manual&#8221;/]
<h2 id="output">Output</h2>
<p><img decoding="async" loading="lazy" class="alignnone size-full wp-image-4669" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/lambda-function-output.png" alt="" width="1088" height="865" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/lambda-function-output.png 1088w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/lambda-function-output-300x239.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/lambda-function-output-1024x814.png 1024w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/lambda-function-output-768x611.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/lambda-function-output-390x310.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/lambda-function-output-820x652.png 820w" sizes="(max-width: 1088px) 100vw, 1088px" /></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/python/what-are-lambda-functions-in-python/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>List out the features of python</title>
		<link>https://www.wikitechy.com/interview-questions/python/list-out-the-features-of-python/</link>
					<comments>https://www.wikitechy.com/interview-questions/python/list-out-the-features-of-python/#respond</comments>
		
		<dc:creator><![CDATA[webmaster]]></dc:creator>
		<pubDate>Sat, 13 Aug 2022 08:56:28 +0000</pubDate>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[features of java and python]]></category>
		<category><![CDATA[features of python]]></category>
		<category><![CDATA[features of python in detail]]></category>
		<category><![CDATA[features of python programming]]></category>
		<category><![CDATA[python features]]></category>
		<category><![CDATA[what are the features in python]]></category>
		<category><![CDATA[what are the key features of python]]></category>
		<category><![CDATA[what are the main characteristics of python]]></category>
		<category><![CDATA[what is python explain its features]]></category>
		<category><![CDATA[write any four features of python language]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=4664</guid>

					<description><![CDATA[Easy It is a friendly developer language which means that anyone and everyone can learn to code it in a couple of hours or days. Python is one of the&#8230;]]></description>
										<content:encoded><![CDATA[<h3 id="" style="text-align: justify;"><img decoding="async" loading="lazy" class="size-full wp-image-4665" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/features-of-python.png" alt="" width="1575" height="966" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/features-of-python.png 1575w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/features-of-python-300x184.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/features-of-python-1024x628.png 1024w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/features-of-python-768x471.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/features-of-python-1536x942.png 1536w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/features-of-python-390x239.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/features-of-python-820x503.png 820w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/features-of-python-1180x724.png 1180w" sizes="(max-width: 1575px) 100vw, 1575px" /></h3>
<h3 id="easy" style="text-align: justify;">Easy</h3>
<ul style="text-align: justify;">
<li>It is a friendly developer language which means that anyone and everyone can learn to code it in a couple of hours or days.</li>
<li>Python is one of the easiest to learn, while compared to other object-oriented programming languages like Java, C, C++, and C#.</li>
</ul>
<h3 id="free-and-open-source" style="text-align: justify;">Free and Open-Source</h3>
<ul style="text-align: justify;">
<li>It is an open-source programming language which means that anyone can create and contribute to its development.</li>
<li>It has an online forum where thousands of coders gather daily to improve this language further.</li>
<li>In any OS like Windows, Linux, Mac it can be use and free to download.</li>
</ul>
<h3 id="gui-standard" style="text-align: justify;">Gui Standard</h3>
<ul style="text-align: justify;">
<li>GUI is otherwise known as Graphical User Interface is one of the key aspects of any programming language because it has the ability to add flair to code and make the results more visual.</li>
<li>It is one of most favorite language for developers, so its supports for a wide array of GUIs which can easily be imported to the interpreter.</li>
</ul>
<h3 id="object-oriented-approach" style="text-align: justify;">Object-Oriented Approach</h3>
<ul style="text-align: justify;">
<li>It is partial object-oriented programming language.</li>
<li>Basically, python recognizes the concept of class and object encapsulation thus allowing programs to be efficient in the long run.</li>
</ul>
<h3 id="high-level-language" style="text-align: justify;">High-Level Language</h3>
<ul style="text-align: justify;">
<li>It has been designed to be a high-level programming language, which means that when you code in Python you don’t need to be aware of the coding structure, architecture as well as memory management.</li>
</ul>
<h3 id="integrated-by-nature" style="text-align: justify;">Integrated by Nature</h3>
<ul style="text-align: justify;">
<li style="text-align: justify;">It is an integrated language by nature which means that the python interpreter executes codes one line at a time.</li>
<li style="text-align: justify;">We don’t need to compile Python code thus making the debugging process much easier and efficient, unlike other object-oriented programming languages.</li>
</ul>
<h3 id="portable" style="text-align: justify;">Portable</h3>
<ul style="text-align: justify;">
<li style="text-align: justify;">If we are running Python on Windows and you need to shift the same to either a Mac or a Linux system, then you can easily achieve the same in Python without having to worry about changing the code.</li>
</ul>
<h3 id="dynamically-typed" style="text-align: justify;">Dynamically typed</h3>
<ul style="text-align: justify;">
<li style="text-align: justify;">It is one of the most dynamic languages available in the industry today.</li>
</ul>
<h3 id="large-library-standard" style="text-align: justify;">Large library standard</h3>
<ul style="text-align: justify;">
<li style="text-align: justify;">It comes inbuilt with a large number of libraries that can be imported at any instance and be used in a specific program.</li>
</ul>
<h3 id="support-for-other-languages" style="text-align: justify;">Support for Other Languages</h3>
<ul style="text-align: justify;">
<li style="text-align: justify;">By default, Python supports the execution of code written in other programming languages such as Java, C, and C#, thus making it one of the versatile in the industry.</li>
</ul>
<p style="text-align: justify;">
<p style="text-align: justify;">
<p style="text-align: justify;">
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/python/list-out-the-features-of-python/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Python Vs Java</title>
		<link>https://www.wikitechy.com/interview-questions/python/python-vs-java/</link>
					<comments>https://www.wikitechy.com/interview-questions/python/python-vs-java/#respond</comments>
		
		<dc:creator><![CDATA[webmaster]]></dc:creator>
		<pubDate>Sat, 13 Aug 2022 05:14:17 +0000</pubDate>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[difference between python and java]]></category>
		<category><![CDATA[java vs python]]></category>
		<category><![CDATA[java vs python which is better for future]]></category>
		<category><![CDATA[python vs java : which is best]]></category>
		<category><![CDATA[python vs java 2022]]></category>
		<category><![CDATA[python vs java salary]]></category>
		<category><![CDATA[python vs java speed]]></category>
		<category><![CDATA[python vs java vs sql]]></category>
		<category><![CDATA[python vs java:which is best in 2022]]></category>
		<category><![CDATA[which is better java or python]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=4662</guid>

					<description><![CDATA[                      Python                         Java &#160; It has more high-level programming language. &#160; It is the most fundamental language for multiple platforms &#160; On other hand it&#8230;]]></description>
										<content:encoded><![CDATA[<table width="0">
<tbody>
<tr>
<td width="336"><strong> </strong></p>
<p><strong> </strong></p>
<p><strong>                  Python</strong></td>
<td width="330"><strong> </strong></p>
<p><strong> </strong></p>
<p><strong>                    Java </strong></td>
</tr>
<tr>
<td width="336">&nbsp;</p>
<p>It has more high-level programming language.</td>
<td width="330">&nbsp;</p>
<p>It is the most fundamental language for multiple platforms</td>
</tr>
<tr>
<td width="336">&nbsp;</p>
<p>On other hand it is an interpreter manually typed, makes it slower</td>
<td width="330">&nbsp;</p>
<p>It is statically typed programming, makes it faster</td>
</tr>
<tr>
<td width="336">&nbsp;</p>
<p>It is an object-oriented with the advantage of scripting language</td>
<td width="330">&nbsp;</p>
<p>It is an object-oriented programming language</td>
</tr>
<tr>
<td width="336">&nbsp;</p>
<p>It has less legacy problem making it difficult for the organizations to copy and paste</td>
<td width="330">&nbsp;</p>
<p>Java legacy systems are typically larger and numerous</td>
</tr>
<tr>
<td width="336">&nbsp;</p>
<p>Short lines of code than java</td>
<td width="330">&nbsp;</p>
<p>Longer line of code than python</td>
</tr>
<tr>
<td width="336">&nbsp;</p>
<p>Python access layers are weaker than Java</td>
<td width="330">Java database connectivity is popular and widely used to connect</td>
</tr>
<tr>
<td width="336">&nbsp;</p>
<p>Syntax of Python is easier than Java</td>
<td width="330">&nbsp;</p>
<p>Syntax of Java is complex than Python</td>
</tr>
<tr>
<td width="336">&nbsp;</p>
<p>Lesser coding than Java, make its productivity high</td>
<td width="330">&nbsp;</p>
<p>Due to larger and complex coding than python, productivity is less</td>
</tr>
<tr>
<td width="336">&nbsp;</p>
<p>Because of simplicity and shorter code python is easy to use</td>
<td width="330">&nbsp;</p>
<p>Due to larger and complex coding than python, productivity is less</td>
</tr>
<tr>
<td width="336">&nbsp;</p>
<p>Short coding makes python more readable</td>
<td width="330">&nbsp;</p>
<p>Because of complex coding, readability is less</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/python/python-vs-java/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<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>
	</channel>
</rss>
