title: Python vs. R: apply a function to each element in a vector
body: <p>I want to apply a function (<code>len</code>) over each element in a vector. In R I can easily do this with <code>sapply(cities,char)</code>. Is there an alternative like this in Python WITHOUT writing a loop?</p>