lists + string

ian iwaters at btclick.com
Fri May 10 12:29:40 EDT 2002


hi started to learn python this week
and my lecturer threw us in the deep end
and asked us to write a mail server.. oh well

anyway in the program i read in some input from the user

input = str(raw_input .........

how do i compare it to an element in a list??

ive tried

for x in list
    if input == x:print 'found item'

but it dont work any help would be great thanx





More information about the Python-list mailing list