SyntaxFix
Write A Post
Hire A Developer
Questions
These toolz are great for this kind of simple yet repetitive logic.
http://toolz.readthedocs.org/en/latest/api.html#toolz.dicttoolz.valmap
Gets you right where you want to be.
import toolz def f(x): return x+1 toolz.valmap(f, my_list)