Exercise: Count items that match a condition
A common idiom:
sum(1 for x in items if condition). Use it to count the words longer than two letters.Premium
Python
Setting up Python environment... Output