dharmik
@dharmik@linuxusers.in
46 following 17 followers
[print(x) for x in range(1, 11) if x % 2 == 0]
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…