author | Nishanth <nishanth@fossee.in> |
Sun, 10 Oct 2010 15:40:19 +0530 | |
changeset 292 | de96931fac21 |
parent 291 | d83395820797 |
child 293 | ca701f1ef7fb |
--- a/getting-started-files/questions.rst Sun Oct 10 15:34:34 2010 +0530 +++ b/getting-started-files/questions.rst Sun Oct 10 15:40:19 2010 +0530 @@ -37,7 +37,7 @@ What is the value of content, at the end of this code block:: f = open('hello.txt') - content = f.read() + pre_content = f.read() content = f.read() f.close() @@ -126,7 +126,7 @@ .. A minimum of 2 questions here. -1. f.read(size) +1. What does ``f.read(size)`` do? #. Print every alternate line of a file, starting at the first line.