thanks, a lot it works!
still learning something every day...
DimitriOn 6/24/05, Skip Montanaro <[EMAIL PROTECTED]> wrote:
dimitri> I came up with the following solution:dimitri> a = 'harry is a strange guy. so is his sister, but at least she is not adimitri> guy. i am.'dimitri> b =
On 6/24/05, dimitri pater <[EMAIL PROTECTED]> wrote:
> a = 'harry is a strange guy. so is his sister, but at least she is not a
> guy. i am.'
> b = a.replace('. ', '.')
> splitlist = b.split('.')
> newlist = []
> for i in range(len(splitlist)):
> i = ''.join(splitlist[i].capitalize() + '
dimitri> I came up with the following solution:
dimitri> a = 'harry is a strange guy. so is his sister, but at least she is
not a
dimitri> guy. i am.'
dimitri> b = a.replace('. ', '.')
dimitri> splitlist = b.split('.')
dimitri> newlist = []
dimitri> for i in range(le
Hello!
I want to capitalize every sentence in a string:
harry is a strange guy. so is his sister, but at least she is not a guy. i am.
to:
Harry is a strange guy. So is his sister, but at least she is not a guy. I am.
I came up with the following solution:
a = 'harry is a strange guy. so is his s