<?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>how to swapcase in python without inbuilt function - Wikitechy</title>
	<atom:link href="https://www.wikitechy.com/interview-questions/tag/how-to-swapcase-in-python-without-inbuilt-function/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.wikitechy.com/interview-questions/tag/how-to-swapcase-in-python-without-inbuilt-function/</link>
	<description>Interview Questions</description>
	<lastBuildDate>Tue, 16 Aug 2022 12:18:21 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://www.wikitechy.com/interview-questions/wp-content/uploads/2025/10/cropped-wikitechy-icon-32x32.png</url>
	<title>how to swapcase in python without inbuilt function - Wikitechy</title>
	<link>https://www.wikitechy.com/interview-questions/tag/how-to-swapcase-in-python-without-inbuilt-function/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<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 swapcase this method creates a copy of the string which contains all the characters. It generates a small case string and vice versa, if the [&#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>
<div class="code-embed-wrapper"> <div class="code-embed-infos"> </div> <pre class="language-python code-embed-pre line-numbers"  data-start="1" data-line-offset="0"><code class="language-python code-embed-code"># Python program to demonstrate the use of<br/># swapcase() method  <br/>  <br/>string = &quot;Welcome to Wikitechy&quot;<br/>  <br/># prints after swappong all cases<br/>print(string.swapcase())   <br/>  <br/>string = &quot;striver&quot; <br/>print(string.swapcase())  </code></pre> </div>
<h3 id="output" style="text-align: justify;">Output</h3>
<p style="text-align: justify;"><img fetchpriority="high" decoding="async" 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>
	</channel>
</rss>
