Python for Informatics - Chapter 7 Files

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

You're a great teacher! I learned more in five minutes of your video than I did in several days of tutorials from Learn Python the Hard Way. I love that I can write Python in a way that is more familiar to me (from previously learning Ruby), and can write loops more succinctly now that I have watched this video. 

marswilliams
Автор

I'm really getting into these lectures now, and feel like I'm making progress. Fantastic!

boratsagdiyev
Автор

I tweaked the instructions for 7.1, and 7.2 - and tested both and they worked swimmingly. I added a note about the file to open.

ChuckSeverance
Автор

os.chdir() sometimes comes in handy when navigating directories.

arundhatibakshi
Автор

i downloaded the mbox.txt file via the given link in the book. when i ran counting line program, it returned as 132044', despite the count of line is 132045 in the book. so if you guys have this small issue like me just open the text file you have downloaded and press enter to place the indicator to downline, you can add a few white spaces if you want.
the thing is the last line of the text does not include '\n' so you can give one more newline character by going down one more line. i hope this helps because it may seem confusing to beginners like myself.

aliveli-hqzk
Автор

Is it possible to use open in writing mode to use it as a logging system?
So this file will have all the executions of the program.

kostasnikoloutsos
Автор

Hi Chuck. How i could read just only the last line of a big file, and extract it's value?

KennedySanchezcld
Автор

Thanks, though would you fix audio at 6th minute for other viewers?

PoiSonSonic
Автор

>>> test = open('NEWS.txt', 'w')
>>> print test
SyntaxError: invalid syntax (<pyshell#59>, line 1)
>>> test =
>>> print test
SyntaxError: invalid syntax (<pyshell#61>, line 1)

any idea why its not working?

sreejithkc
Автор

Where can I find the text file from this lecture?

johnr
Автор

I awlasy get this error, not sure why? this file is located inside the python directory but still get this error, please let me know can i fix it

>>> test =
>>> for cheese in test:
print cheese

SyntaxError: invalid syntax (<pyshell#67>, line 2)

sreejithkc
Автор

Can you please add chapter markers to your videos?

patchyxx
Автор

we can t do exercices 7.1 and 7.2 : they are not working on the course u fix it please so that we can go on in Learning chapter 9-10-11 thxs

MrBlackbisounours
Автор

Sir can you make lectures on object oriented programming ?

nazmussalehin
Автор

does anyone else get no audio for this video?

thisguy
welcome to shbcf.ru