
# Add one to all odd numbers in a list

input = [1, 2, 3, 4, 6]

out = [ x if x%2 == 0 else x+1
               for x in input
      ]


print(out)

