dharmik

@dharmik@linuxusers.in

admin @ linuxusers.in.
student. custodian of useless trivia.
hacker. python. c. unix. vim.

bloghttps://dhrm1k.github.io
codeshithttps://github.com/dhrm1k
matrix@spiderham:matrix.org
photos@dharmiik@social.photo

Location: 23.014509,72.591759

81 following, 28 followers

0 ★ 0 ↺

dharmik »
@dharmik@linuxusers.in

i had no idea list comprehension existed,

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

new_list = [i for i in thisislist if "a" in i]

print(new_list)


    ...

    History