Quick actions

cmd+k|ctrl+k

Navigation

Languages

comprehension list

Snippet info

Language

Python

Visibility

public

Author

hltse59

Created

2024-04-02T03:25:55.554665Z

Updated

2024-04-08T11:28:17.197371Z

fruits = ["apple", "banana", "cherry", "kiwi", "mango"]

newlist = [x for x in fruits if "a" in x]

print(newlist)
INFO