[Tutor] Help please!
Victoria Homsy
victoriahomsy at yahoo.com
Mon Jul 30 21:52:45 CEST 2012
Hello all! I have a very simple question but I'm very new to python. Could you describe to me what the following piece of Python code says in English please?
def print_a_line(line_count, f):
print line_count, f.readline()
I understand that line_count counts the number of lines in the Python prog, and that we are creating a function, and that 'f' stands for file etc, but I can't get my head around what the function does.
Many thanks in advance!
Best,
Victoria
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20120730/a441b810/attachment.html>
More information about the Tutor
mailing list