dharmik
@dharmik@linuxusers.in
46 following 17 followers
thisislist = ["apple", "banana", "cherry", "kiwi", "mango"] new_list = [i for i in thisislist if "a" in i] print(new_list)
@dharmik wait to realize that list comprehensions are syntactic sugar for monads…