Hello,
I am learning python and dont quuite understand why is this happening
could someone explain?
alist = []
blist = [ 'one','two','on e and two','one and four','five','o ne two']
for f in blist:
if 'one' and 'two' in f:
alist.append(f)
for i in alist:
print i
two
one and two
one two
why is it printing the first "two"?
tia
I am learning python and dont quuite understand why is this happening
could someone explain?
alist = []
blist = [ 'one','two','on e and two','one and four','five','o ne two']
for f in blist:
if 'one' and 'two' in f:
alist.append(f)
for i in alist:
print i
two
one and two
one two
why is it printing the first "two"?
tia
Comment