On 6/27/2009 3:39 AM Angus Rodgers said...
On Fri, 26 Jun 2009 18:58:27 -0700 (PDT), powah
<wong_po...@yahoo.ca> wrote:

Thank you for your hint.
This is my solution:
f = open('test', 'r')
for line in f:
   print line[0].upper()+line[1:],

Will your program handle empty lines of input correctly?


It will when the final line is changed to:

        print line[:1].upper()+line[1:]


Emile

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to