change the first character of the line to uppercase in a text file

Emile van Sebille emile at fenx.com
Fri Jun 26 16:46:43 EDT 2009


On 6/26/2009 12:43 PM powah said...
> How to change the first character of the line to uppercase in a text
> file?
> e.g.
> input is:
> abc xyz
> Bd ef
> gH ij
> 
> output should be:
> Abc xyz
> Bd ef
> GH ij

How far have you gotten?

Emile




More information about the Python-list mailing list