I've got a feeling that I will be told to go to the 'beginner's guide' or what have you but I have this code here that goes
does = ['my','mother','told','me','to','choose','the']
it = ['my','mother','told','me','to','choose','the']
work = []
while 5 > len(work):
for nope in it:
if nope in does:
work.append(nope)
print (work)
And I get
['my', 'mother', 'told', 'me', 'to', 'choose', 'the']
Why is this? And how do I convince it to return
['my', 'mother', 'told', 'me']
while 5>len(work)
is seen illogical by many, leading to the name of "yoda conditions". It's correct either way of course:) – Subeditor