[IPython-user] lazy python; archive search

Ville Vainio vivainio at gmail.com
Fri Dec 9 13:44:34 CST 2005


On 12/9/05, Matt Wilkie <maphew at gmail.com> wrote:
> Hello ipy, I have two questions today:
>
> 1)  is there an easy way to create lists n such without having to
> quote everything? e.g.
> "plans = [84574 85779 86458]" ---->
> "plans = ['84574','85779','86458']"

You could do

plans = "84574 85779 86458".split()

--
Ville Vainio    http://tinyurl.com/2prnb




More information about the IPython-user mailing list