Aditya Lal wrote:
> finalList = [ word for word in lstA if wellformed(word) ]
or do everything in one statement:
finalList = [ word for word in lstA if all(c in astr for c in word) ]
Note to Dick:
You don't have to convert word to a list before iterating it:
wordWithCommas = list(word)
print "wordWithCommas is", wordWithCommas
for char in wordWithCommas:
could be just
for char in word:
Kent
_______________________________________________
Tutor maillist - [email protected]
http://mail.python.org/mailman/listinfo/tutor