Python programming

Anurag Chourasia anurag.chourasia at gmail.com
Wed Dec 22 21:43:01 EST 2010


Here you go.....

$ python
Python 2.5.2 (r252:60911, Dec  2 2008, 09:26:14)
[GCC 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)] on cygwin
Type "help", "copyright", "credits" or "license" for more information.
>>> A=[2,6,5]
>>> if 5 in A:
...     print 'Yes'
... else:
...     print 'No'
...
Yes
>>>

Regards,
Anurag

On Thu, Dec 23, 2010 at 6:52 AM, Maurice Shih <rockitout117 at yahoo.com>wrote:

> Dear python-list at python.org,
> 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.
> Maurice Shih
>
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20101223/32628844/attachment.html>


More information about the Python-list mailing list