M
M. Clift
Hi All,
Can someone help. I promise I've looked how to do this but can't find a
way...
Ok, to find one name is easy
if 'Bob' in list:
print "They were found"
else:
print "They are not in list"
But, how to I find a sequence in a list of unknown size? i.e. this sequence
in list of other names and replace it with three others?
'Rita','Sue','Bob'
This is almost a nightly occurrence (my posting questions), but I am
learning : )
Can someone help. I promise I've looked how to do this but can't find a
way...
Ok, to find one name is easy
if 'Bob' in list:
print "They were found"
else:
print "They are not in list"
But, how to I find a sequence in a list of unknown size? i.e. this sequence
in list of other names and replace it with three others?
'Rita','Sue','Bob'
This is almost a nightly occurrence (my posting questions), but I am
learning : )