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

powah wong_powah at yahoo.ca
Fri Jun 26 15:43:05 EDT 2009


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



More information about the Python-list mailing list