On Sun, 17 Aug 2008 11:22:37 -0700 (PDT), Alexnb wrote: > funString = "string string string non-string non-string string" > and > for "string" in funString: > print something > > I know you can't do that; but, is there a way do do something similar that > gets the same result?
What's "that"? Do you mean _this_: >>> somestr = "string1 string2 string3" >>> for i in somestr.split(): ... print i ... string1 string2 string3 >>> ? -- Regards, Wojtek Walczak, http://www.stud.umk.pl/~wojtekwa/ -- http://mail.python.org/mailman/listinfo/python-list