Reading Files | Python | Tutorial 28

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

Throughout the course we'll be looking at various topics including variables, lists, tuples, loops, conditionals, object orientation, and much more.
Рекомендации по теме
Комментарии
Автор

"The Office" reference just made the video way cooler than it already is 💙

riasatmorshedkhan
Автор

it strikes me that we both love The office!!! HAHAHA You Video is excellent ! Good Job

epochalanaxagorasworldpeac
Автор

Updated: 4 dislikes = inevitability of complaints. Amazing material, thank you for being so thorough and easy to understand. You made me a programmer!

jasonturner
Автор

I got stuck at this part in a book (due to no illustrations) and a professor's video (due to too many jargons)...thanks so much for making it clear, Mike! :)

yz
Автор

actually top tear dude. loved the tutorial. Cleared alot stuff for me. Kinda like a friend is just helpin me through. Thank you so much

ZuhayerSarfaraz
Автор

Not a single dislike, this must be good

Walexforsure
Автор

i search around 3 hours to find how to find a specific line from a text file and this tutorial helps me for this.

xy
Автор

Excellent presentation concerning the readline method!!! Keep up the excellent work

professorbettyeparham
Автор

Love the Office references. Correction, Dwigth is Assistant (to the) Regional Manager :D

ismarsuceska
Автор

employee_list = open('employees', 'r')
txt = employee_list.read()
print(txt)
employee_list.close() #Here is another solution if you have any issues with his way.

alexandera
Автор

Great valuable training _ timing is everything! Thank you Mike.

HIDlarissaTERRY
Автор

Ok, but how would you read/write an absolute location file.

Jumpae
Автор

Thank you Mike for this super clear and concise video. Keep up the awesome work! + Subbed

Bennyy
Автор

Mike, create the employees.txt file, then how to open it in Python?

RoseLK
Автор

Awesme videos, Thank yoy.
I just wanted to share a sollution to an error that occured for me.
I tried opening and reading a file and got an error several times. It was because the path, as a string, kept being interpreted as special characters because of the backslash.
So for example:
would error because of \U.

The solution that worked for me was adding a r before the start of the text string as bellow, which python interprets as "raw".
Old way with error:
document = open("C:\Users\User\Documents\test.txt, "r")
New way that worked when doing it with a path:
document = open(r"C:\Users\User\Documents\test.txt, "r")

willeblom
Автор

i keep getting the no such file or directory error

nathancroley
Автор

it isnt workibg for me. It keeps saying the txt file isn't in the directory when it already is.

blade
Автор

Why can't Python print more than one of these print commands in sequence? Like, why can't I have
" " on one line and then " " on the next line?

scottisitt
Автор

Please, your videos is one of the best of best, I will be the most happy person if you do python OOP pls

emmanuelodih
Автор

The .readable() method does not work on Mac OS, fyi.

kittendkat
join shbcf.ru