On 24/10/2014 23:58, Seymore4Head wrote:
On Wed, 22 Oct 2014 16:30:37 -0400, Seymore4Head
<Seymore4Head@Hotmail.invalid> wrote:

name="123-xyz-abc"
a=range(10)
b=list(range(10))
c=str(list(range(10)))
print ("a",(a))
print ("b",(b))
print ("c",(c))

for x in name:
     if x in a:
         print ("a",(x))
     if x in b:
         print ("b",(x))
     if x in c:
         print ("c",(x))

B is type list and C is type str.
I guess I am still a little too thick.  I would expect b and c to
work.
http://i.imgur.com/dT3sEQq.jpg


Why?

--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to