>>>> h,s,t = st.partition(' and')
>
>The keyword needs a space at both ends:
>
> >>> st = 'an androphobic andromedan android'
> >>> results
> ['an', ' and', 'rophobic', ' and', 'romedan', ' and', 'roid', '']
>
>Good catch, although to be honest I intended it to have a space...
>But I didn't check the output closely enough! :-(
>
>
>Alan g.
>
_______________________________________________
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor