[Tutor] question on Partition

sachin mehra bindas_qwerty@hotmail.com
Tue Dec 10 14:38:00 2002


hi,
I need to use the partition function.How can I use it?Do I have to include 
any module for that?Kidly let me know.
Thanx,



###
>>>paritition("attackatdawn")
[['at', 'tack', 'at', 'dawn'],
['attack', 'at', 'dawn']]

>>>partition("iscreamforicecream")
[['is', 'cream', 'for', 'ice', 'cream'],
['i', 'scream', 'for', 'ice', 'cream']]

>>>partition("uselesspython")
[['use', 'less', 'python'],
['useless', 'python']]

>>>partition("inaholetherelivedahobbit")
[['in', 'a', 'hole', 'the', 're', 'lived', 'a', 'hobbit'],
['in', 'a', 'hole', 'there', 'lived', 'a', 'hobbit']]
###


_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail