I am out of trial and error again Lists
Mark Lawrence
breamoreboy at yahoo.co.uk
Fri Oct 24 19:27:53 EDT 2014
More information about the Python-list mailing list
Fri Oct 24 19:27:53 EDT 2014
- Previous message (by thread): I am out of trial and error again Lists
- Next message (by thread): I am out of trial and error again Lists
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 24/10/2014 23:58, Seymore4Head wrote: > On Wed, 22 Oct 2014 16:30:37 -0400, Seymore4Head > <Seymore4Head at 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
- Previous message (by thread): I am out of trial and error again Lists
- Next message (by thread): I am out of trial and error again Lists
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list