<div>Here you go.....</div><div><br></div><div>$ python</div><div>Python 2.5.2 (r252:60911, Dec  2 2008, 09:26:14)</div><div>[GCC 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)] on cygwin</div><div>Type "help", "copyright", "credits" or "license" for more information.</div>

<div>>>> A=[2,6,5]</div><div>>>> if 5 in A:</div><div>...     print 'Yes'</div><div>... else:</div><div>...     print 'No'</div><div>...</div><div>Yes</div><div>>>></div><div><br>

</div><div>Regards,</div><div>Anurag</div><br><div class="gmail_quote">On Thu, Dec 23, 2010 at 6:52 AM, Maurice Shih <span dir="ltr"><<a href="mailto:rockitout117@yahoo.com">rockitout117@yahoo.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top" style="font:inherit"><div>Dear <a href="mailto:python-list@python.org" target="_blank">python-list@python.org</a>,<br>

        Thank you for taking the time to listen to my request. I'm a beginner programmer and I se python 2.6. I am making a program that needs a command that can check if a value is in a list. For example to check whether 5 is in [2, 6, 5,]. Thank you for hearing my request. <br>

Maurice Shih</div></td></tr></tbody></table><br>

      <br>--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
<br></blockquote></div><br>