If you're just starting out, look at the Python tutorial http://docs.python.org/tutorial/index.html
This question is answered in the tutorial- specifically in http://docs.python.org/tutorial/datastructures.html#more-on-conditions Also, there's a separate list, the tu...@python.org , for people just learning python. http://www.python.org/mailman/listinfo/tutor On Wed, Dec 22, 2010 at 8:22 PM, Maurice Shih <rockitout...@yahoo.com> wrote: > > Dear python-list@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 > -- http://mail.python.org/mailman/listinfo/python-list