MCQs>IT & Programming>Python>Given the list 'li = ['a', 'Sir Robin', 'Sir Gawaine', 'Sir Not Appearing in this film', 'cb', 'rabbits']', what does the following list comprehension return '[item for item in li if len(item) > 2]'?
Python MCQs
Given the list "li = ["a", "Sir Robin", "Sir Gawaine", "Sir Not Appearing in this film", "cb", "rabbits"]", what does the following list comprehension return "[item for item in li if len(item) > 2]"?
Answer
Correct Answer: ['Sir Robin', 'Sir Gawaine', 'Sir Not Appearing in this film', 'rabbits']
Explanation:
Note: This Question is unanswered, help us to find answer for this one