Learn Python 3 The Hard Way - Exercise 20: Functions and Files

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

Want to follow along with Learn Python 3 The Hard Way?

LearningPythonProgramming
Автор

Thanks for the video's. Been going through the book and some of it gets a bit difficult to understand, really appreciate having video's like yours to find some help.

dawidk
Автор

hey even though I created the text file I'm getting the error message : [Errno 2] No such file or directory

jeritulcomplete
Автор

Thanks for the videos btw, i have prob with the output where this line 18 printed on terminal like it has blank space in between the lines from test.txt file . which i completely follow as the book and yours, but still it has sapcing in between lines as i printed on terminal . when i tried to print out line 24 - 33 on terminal, the second line on terminal printed as blank space not as "This is line 2" instead it showed up as line number 3 .

this is the output from terminal:


First let's print the whole file:


ÿþT h i s i s l i n e 1

T h i s i s l i n e 2

T h i s i s l i n e 3
Now let's rewind, kind of like a tape.
Let's print three lines:
1 ÿþT h i s i s l i n e 1

2

3 T h i s i s l i n e 2

akidwhoranaway
join shbcf.ru