[thing for thing in list_of_things]
>>> [(i) for i in my_list if i=="two"] ['two']
mylist = [1,4,5,8,9,11,13,12] newlist = [x+1 if x%2 == 1 else x for x in mylist] print(newlist)
def even_odd(n): return "even" if n % 2 == 0 else "odd"