[IPython-user] lazy python; archive search

Matt Wilkie maphew at gmail.com
Fri Dec 9 13:55:44 CST 2005


> > 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()

That's much easier to type, thanks!

--
-matt




More information about the IPython-user mailing list