<div>Thanks Alan!</div>
<div> </div>
<div>-Sankar<br><br></div>
<div class="gmail_quote">On Tue, Jan 11, 2011 at 2:50 PM, Alan Meyer <span dir="ltr"><<a href="mailto:ameyer2@yahoo.com">ameyer2@yahoo.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div class="im">On 1/10/2011 6:02 PM, Chris Rebert wrote:<br></div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div class="im">On Mon, Jan 10, 2011 at 2:44 PM, SANKAR .<<a href="mailto:shankarphy@gmail.com" target="_blank">shankarphy@gmail.com</a>>  wrote:<br></div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hello There, 
<div>
<div></div>
<div class="h5"><br><br>       I am from non IT field also new to python programming.Could you<br>please help me to solve the following problem?<br><br>I have a list T1 with following format:<br><br>T1 = [ ' "Field" ' , ' "12.5" ', ' "2.5" ']<br>
<br>How do get the list elements without double quote in my output (T2).<br><br>T2 =[ ' Field ' , ' 12.5 ', ' 2.5 ']<br></div></div></blockquote></blockquote><br>This will do it:<br>------------------------------------------------ 
<div class="im"><br>T1 = [ ' "Field" ' , ' "12.5" ', ' "2.5" ']<br></div>T2 = []<br>for t in T1:<br>   T2.append(t.replace('"', ''))<br>------------------------------------------------<br>
<br>The "replace" function acts on each element in T1, replacing every double quote with nothing.  We then append that to the new list T2.<br><br>   Alan<br><font color="#888888">-- <br><a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</font></blockquote></div><br>