I am having a hard time trying to get this. its my homework, but I would love it if someone explains what it is that I need?
and this is what i have... i think its way off:
Code:
Write a function that is passed in a list of strings and returns a new list with all the strings of the original list that have length 2 (the original list is not changed).
For example:
original = ['this', 'is', 'my', 'list', 'of', 'strings']
others = siftTwo(original)
print others
Would display:
['is', 'my', 'of']
and this is what i have... i think its way off:
Code:
def shift():
original = ['this', 'is', 'my', 'list', 'of', 'strings']
len(list[original])
if len == 2:
print (list)









