list comprehension

Run Settings
LanguagePython
Language Version
Run Command
old_list = ['this', 'is', 'a', 'man'] new_list = [] for item in old_list: if len(item) > 2: new_list.append(item[::-1]) print(new_list) # (if)filter must after for
Editor Settings
Theme
Key bindings
Full width
Lines