<?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>TechieDrill &#187; Python</title>
	<atom:link href="http://techiedrill.com/category/programming/python/feed/" rel="self" type="application/rss+xml" />
	<link>http://techiedrill.com</link>
	<description>Your World Of Technical Tutorials</description>
	<lastBuildDate>Tue, 05 Jan 2010 16:50:11 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Python Slicing &#8211; How to get substring</title>
		<link>http://techiedrill.com/2009/11/python-slicing-how-to-get-substring/</link>
		<comments>http://techiedrill.com/2009/11/python-slicing-how-to-get-substring/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 15:47:53 +0000</pubDate>
		<dc:creator>bprashanth</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[slicing]]></category>
		<category><![CDATA[string]]></category>
		<category><![CDATA[substring]]></category>

		<guid isPermaLink="false">http://techiedrill.com/?p=235</guid>
		<description><![CDATA[What we call as substring in C/C++/Java/CSharp/VB is implemented by slicing in python.
Slicing works something like this:
name = &#8216;techiedrill&#8217;
Here, python treats the string as
0-t
1-e
2-c
4-h and so on&#8230;
So, to get a part of the original string, all that needs to be done is use the : symbol. This is called slicing.
first = name[:5]       [...]]]></description>
			<content:encoded><![CDATA[<p>What we call as substring in C/C++/Java/CSharp/VB is implemented by slicing in python.</p>
<p>Slicing works something like this:</p>
<p><strong>name = &#8216;techiedrill&#8217;</strong></p>
<p>Here, python treats the string as<br />
0-t<br />
1-e<br />
2-c<br />
4-h and so on&#8230;</p>
<p>So, to get a part of the original string, all that needs to be done is use the : symbol. This is called slicing.<br />
<em>first = name[:5]                  ===&gt;        first = &#8216;techie&#8217;<br />
last = name[5:]            ===&gt;        last = &#8216;drill&#8217;<br />
middle = name[2:6]  ===&gt;        middle = &#8216;chied&#8217;</em></p>
]]></content:encoded>
			<wfw:commentRss>http://techiedrill.com/2009/11/python-slicing-how-to-get-substring/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
