Another neat solution with a little help from http://stackoverflow.com/questions/1701211/python-return-the-index-of-the-first-element-of-a-list-which-makes-a-passed-fun
>>> def split_product(p):
... w = p.split(" ")
... j = (i for i,v in enumerate(w) if v.upper() != v).next()
... return " ".join(w[:j]), " ".join(w[j:])
Greetings
--
http://mail.python.org/mailman/listinfo/python-list
