Elements

Report a typo

What keyword should be used instead of the ellipsis ... in the code below so that it would print only those elements of my_list that are less than 50?

for el in my_list:
    if el >= 50:
        ...
    else:
        print(el)

The elements in the list can be in any order.

Enter a short text
___

Create a free account to access the full topic