<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: &#8220;Manipulating&#8221; Python lists II</title>
	<atom:link href="http://python.genedrift.org/2007/02/12/manipulating-python-lists-ii/feed/" rel="self" type="application/rss+xml" />
	<link>http://python.genedrift.org/2007/02/12/manipulating-python-lists-ii/</link>
	<description>a step-by-step guide to create Python applications in bioinformatics</description>
	<lastBuildDate>Sun, 02 May 2010 04:24:01 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1-alpha</generator>
	<item>
		<title>By: nuin</title>
		<link>http://python.genedrift.org/2007/02/12/manipulating-python-lists-ii/comment-page-1/#comment-2928</link>
		<dc:creator>nuin</dc:creator>
		<pubDate>Fri, 14 Sep 2007 04:47:50 +0000</pubDate>
		<guid isPermaLink="false">http://python.genedrift.org/2007/02/12/manipulating-python-lists-ii/#comment-2928</guid>
		<description>If the keeping the order is not important, you can sort the list and then searching for the second item that you want to remove.</description>
		<content:encoded><![CDATA[<p>If the keeping the order is not important, you can sort the list and then searching for the second item that you want to remove.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nuin</title>
		<link>http://python.genedrift.org/2007/02/12/manipulating-python-lists-ii/comment-page-1/#comment-2927</link>
		<dc:creator>nuin</dc:creator>
		<pubDate>Fri, 14 Sep 2007 04:44:51 +0000</pubDate>
		<guid isPermaLink="false">http://python.genedrift.org/2007/02/12/manipulating-python-lists-ii/#comment-2927</guid>
		<description>Please use correct identing. It seems that it has eaten my spaces.</description>
		<content:encoded><![CDATA[<p>Please use correct identing. It seems that it has eaten my spaces.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nuin</title>
		<link>http://python.genedrift.org/2007/02/12/manipulating-python-lists-ii/comment-page-1/#comment-2926</link>
		<dc:creator>nuin</dc:creator>
		<pubDate>Fri, 14 Sep 2007 04:44:14 +0000</pubDate>
		<guid isPermaLink="false">http://python.genedrift.org/2007/02/12/manipulating-python-lists-ii/#comment-2926</guid>
		<description>Hi

IT is quite late, so my answer might not be the most correct one. Try something in the line of

p = ...
bfound = False
while i &lt;= range(len(p)):
    if p[i] == &#039;B&#039; and bfound == True:
          p.pop(i)
    elif p[i] == &#039;B&#039; and bfound == False:
          bfound == True

I will try something else tomorrow. But this should give you a hint.</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>IT is quite late, so my answer might not be the most correct one. Try something in the line of</p>
<p>p = &#8230;<br />
bfound = False<br />
while i <= range(len(p)):<br />
    if p[i] == &#8216;B&#8217; and bfound == True:<br />
          p.pop(i)<br />
    elif p[i] == &#8216;B&#8217; and bfound == False:<br />
          bfound == True</p>
<p>I will try something else tomorrow. But this should give you a hint.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kerry William</title>
		<link>http://python.genedrift.org/2007/02/12/manipulating-python-lists-ii/comment-page-1/#comment-2916</link>
		<dc:creator>kerry William</dc:creator>
		<pubDate>Thu, 13 Sep 2007 20:53:51 +0000</pubDate>
		<guid isPermaLink="false">http://python.genedrift.org/2007/02/12/manipulating-python-lists-ii/#comment-2916</guid>
		<description>Assume that we have the list,

p = [&#039;B&#039;,&#039;A&#039;,&#039;A&#039;,&#039;A&#039;,&#039;A&#039;,&#039;A&#039;,&#039;B&#039;,&#039;C&#039;,&#039;D&#039;]

we don&#039;t know the order of items in this list. However, we do know &#039;B&#039; appears 2 times and A appears 5 times.  How we remove the second &#039;B&#039; ?</description>
		<content:encoded><![CDATA[<p>Assume that we have the list,</p>
<p>p = ['B','A','A','A','A','A','B','C','D']</p>
<p>we don&#8217;t know the order of items in this list. However, we do know &#8216;B&#8217; appears 2 times and A appears 5 times.  How we remove the second &#8216;B&#8217; ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Terabanitoss</title>
		<link>http://python.genedrift.org/2007/02/12/manipulating-python-lists-ii/comment-page-1/#comment-153</link>
		<dc:creator>Terabanitoss</dc:creator>
		<pubDate>Wed, 09 May 2007 08:25:19 +0000</pubDate>
		<guid isPermaLink="false">http://python.genedrift.org/2007/02/12/manipulating-python-lists-ii/#comment-153</guid>
		<description>Hello 
You are The Best!!! 
Bye</description>
		<content:encoded><![CDATA[<p>Hello<br />
You are The Best!!!<br />
Bye</p>
]]></content:encoded>
	</item>
</channel>
</rss>

