Python read a file 🔍

preview_player
Показать описание
Python reading files tutorial example explained

#python #read #file

try:
except FileNotFoundError:
print("That file was not found :(")

––––––––––––––––––––––––––––––
Creative Commons — Attribution-ShareAlike 3.0 Unported— CC BY-SA 3.0
––––––––––––––––––––––––––––––
Рекомендации по теме
Комментарии
Автор

try:
with open('test.txt') as file:
print(file.read())
except FileNotFoundError:
print("That file was not found :(")

BroCodez
Автор

I cannot beleive this 100/100 quality is free.

BigBrotherLife
Автор

I'm going to be spending much more time watching and practicing your content, thanks again!!

zaydarendse
Автор

If you don't know how to open a text file in python:
Go to file in the left upper part of the program
Click in open "You will need to know the location of the file (This was show in the last video of this channel)"
Find the file and click it
Done!

Vital_As
Автор

You videos are mazing, they help me out a ton. Could you please also explain how to make such a file as you did in the video?

notbastian
Автор

Thanks a lot for this! this was the only video that helped me.

danic
Автор

Hey, Bro. Im going over all of your playlist!

irvingpurata
Автор

You are the best thanks for the knowledge bombs ^^

oskyzhr
Автор

Your videos are best, but if you could u explain a bit more, for example I'm beginner so I didn't actually know how to move the files or some functions in previous videos that I have used, now these videos are gone and it's about to be 2022 but for more videos try to explain a bit better, thanks bro❤

Haryad-nhkc
Автор

I JUST FOUND THE ERROR : IT IS THE...
except FileNotFoundError:
print("That file was not found :(")

BLOCK
I JUST REMOVED IT AND NOW THE SCRIPT WORKS WITHOUT ANY PROBLEM

francisjacquart