Hello Navin! I just stumbled upon this and can I just say, I love your way of teaching. Instead of just sitting there and simply instructing us, you play around and experiment with the code, urging us to explore and discover more when we're coding as well! After all, every good programmer should have that curiosity and eagerness to learn! Thanks so much for the tutorial!
Hitting on the like button and subscribing the channel is the only way to thank you Sir.... I really want my college professors to take a coaching class under you... Seriously..!!
Hello Navin Sir, I want to express my heartfelt gratitude for all the effort you put into simplifying the topics. Your presence and the way you explain things in the videos bring us joy and radiate positive energy. I hope you continue in this way, and I wish you all the best in everything you do. Warm regards,
Hi Navin, Thank u for the beautiful series, enjoyed and learnt a lot. Specially OOPs and the videos later were very short and to the point. Thank you so much.
I have seen all the 64 videos , but this video making me to learn programming faster and faster ......."That image data converting into image" is very impressive and I am shockeddd 😲....Tq sir for this wonderful videos ,tq tq tq tq tq very much 🤩🥰
Hey Navin, your videos are amazing, in OOPs you stopped at Polymorphism, please make more videos on Python, topics like database connection, GUI, more on OOPs, etc
You are best 🙏 guruji I didn't knew anything about python but just because of you i know many of the concepts now. Telusko channel should be made compulsory in school, college.
Reddy garu data file handling is one of my not Soo favorite topic in python ... But ur video is Soo amazing , just to the point thank you Soo much andi
firstly, your lecture are so help full and i must say thanks... doubts: 1.can we store the structure data into txt files or only in binary files? 2.how we can decide to choose the txt or binary files for ur requirement?
check for the occurrences of a given word and write the line number and the word location in the line separated by a comma to a file "output.txt" for each occurrence of the word on a new line.
Generally when I learnt c , c++ I ignored this concept of files I can't understand that better . But in python you just nailed it and boom I became a pro with your explanation
So simple explanation, amazing video. Here you can simply use an in-built function shutil.copy shutil.copyfileobj(fsrc, fdst[, length]) : ----------------------------------------------------------- Copy the contents of the file-like object fsrc to the file-like object fdst. The integer length, if given, is the buffer size. In particular, a negative length value means to copy the data without looping over the source data in chunks; by default the data is read in chunks to avoid uncontrolled memory consumption. Note that if the current file position of the fsrc object is not 0, only the contents from the current file position to the end of the file will be copied. shutil.copyfile(src, dst) : --------------------------------------- Copy the contents (no metadata) of the file named src to a file named dst. dst must be the complete target file name; look at shutil.copy() for a copy that accepts a target directory path. If src and dst are the same files, Error is raised. The destination location must be writable; otherwise, an IOError exception will be raised. If dst already exists, it will be replaced. Special files such as character or block devices and pipes cannot be copied with this function. src and dst are path names given as strings. #insmot
Hi sir. I can finally learn Python all by my own by watching your videos. Thank you so much for clear explanation and putting so much effort on editing the videos. One query: The way we write in C if we want to read/write a file, i.e 'rw' How can we do this in python?
If you are thinking lerning files handling is useless... No its not, I am working on this files handling from past 2.5 years........ Learn this too. Many developers work on this.
Hi Naveen Can you please explain **Yield** And how any more videos would be added to this playlist ? Kindly ans I would suggest videos should be **1080P** or with more quality, These are great videos, increasing videos quality would add more value for sure, pls do consider for your next videos. Thanks..!!
Hi Navin, I’m a new subscriber. I also a new programmer. I am very happy to find you here, however, How can get Data into you workspace before you started coding? Thank you very much!!!
That's the type of doubt I have ''why do we even need file handling as one could make a separate file and keep on copying it in code rather than analyzing that file and writing separate code for it?"
Hey watching ur video .. loved it .. please try to solve this program in Python ' topic = file handling' File F1 = A, B ,C File F2 = p ,q ,r Join the file and output should be like:- A = p B= q C =r If anyone interested solve and write program under my comments
sir even after watching 8 videos on same topic only u were the one who was able to explain it love ur channel and content sir thanks for the free videos and seamless education u provide us
Sir Its really helpful when we get this high level of Teaching without attaining costly classes which are there in market ..... Thank you so much sir !!! But please add videos on CSV and PANDAS it would be helpful .... once again thanks a lot Sir !!!
Yes. I am enjoying the series. But I would like a detailed tutorial on BeautifulSoup and Regular Expressions. If you can please include that in your video tutorials
for data in f: f1.write(data) sir here for the first loop, the first line will get printed in mydata.but y for the second time it is not over writing the second line over first. inspite it is appending everything
Need to know how python is used in Data science, business analytics, please upload tuturial/s with real life projects (A to Z) so we'll go ahead with our theory learning.
You can get ride of the line jump with just end=''. Also I believe 'with open(...) as f' is better, and auto-closes the steam of data, so we don't need to use f.close()
Sir your awesomeness is infinitely high sir actually my online classes are going on and it's too boring so i started to see your vid my ma'am teaches for 45 mins on what u took only hardly 2 mins she taught only about f.read("myfiles","r") for 45 mins oh my god I learnt upto operating images in hardly 12 mins omg it's fabulous sir our due respects for u sir .... Sir a small suggestions I want to learn ethical hacking please put some videos on that topic please for your regular viewer and may be your student thanks a lot for the videos sir 😍😍😍😍
Thank you sir for making ur time for us about this python series it's very useful for me I enjoyed it and it's in a simple basic terms to be understandable for any person
Hello Navin!
I just stumbled upon this and can I just say, I love your way of teaching.
Instead of just sitting there and simply instructing us, you play around and experiment with the code, urging us to explore and discover more when we're coding as well! After all, every good programmer should have that curiosity and eagerness to learn!
Thanks so much for the tutorial!
Your way of teaching is very very simple so that even a laymen can understand. Simply superb way of explaining stuffs in a programming language
his way of educating not teaching.
best python course in youtube
NAVIN SIR IS THE BEST
This is the best platform i've found to learn. Awesome work :)
What about code with harry.
Hitting on the like button and subscribing the channel is the only way to thank you Sir....
I really want my college professors to take a coaching class under you... Seriously..!!
Love from Rajasthan !
Saw you on mySirG platform and followed you !
You are having very good explanation skills ! thank You sir
Hello Navin Sir,
I want to express my heartfelt gratitude for all the effort you put into simplifying the topics. Your presence and the way you explain things in the videos bring us joy and radiate positive energy. I hope you continue in this way, and I wish you all the best in everything you do.
Warm regards,
Hi Navin,
Thank u for the beautiful series, enjoyed and learnt a lot.
Specially OOPs and the videos later were very short and to the point. Thank you so much.
I have seen all the 64 videos , but this video making me to learn programming faster and faster ......."That image data converting into image" is very impressive and I am shockeddd 😲....Tq sir for this wonderful videos ,tq tq tq tq tq very much 🤩🥰
Hey Navin, your videos are amazing, in OOPs you stopped at Polymorphism, please make more videos on Python, topics like database connection, GUI, more on OOPs, etc
The last part of the video was something different I learned! Thank you!
You are best 🙏 guruji
I didn't knew anything about python but just because of you i know many of the concepts now.
Telusko channel should be made compulsory in school, college.
I had a big confusion with this file handling....but after watching ur video its clear now some part i can say.
Thankyou ....
This topic is little bit confusing but this is so interesting and thanks for this awesome series sir ☺️
Reddy garu data file handling is one of my not Soo favorite topic in python ...
But ur video is Soo amazing , just to the point thank you Soo much andi
What if we need to read any specific line from file?
Just mention the print(filenama,readline())once
If you want to read some line then keep it in a for loop
All your videos are very simple and understandable , thanks
It's generally a good practice to close a file after you're finished processing its contents. Thanks for the awesome vides.
Super bro... Chala simple and manchiga explain chesaru
firstly, your lecture are so help full and i must say thanks...
doubts:
1.can we store the structure data into txt files or only in binary files?
2.how we can decide to choose the txt or binary files for ur requirement?
Yes sir good topic file handling, generally this topic is ignored.. 🙏🙏..
Thank you for the whole series on Python Navin! Can you please add videos on how to read/write in excel file?
Thanks very much!
Thank you sir... You are the best teacher ❤❤
check for the occurrences of a given word and write the line number and the word location in the line separated by a comma to a file "output.txt" for each occurrence of the word on a new line.
Generally when I learnt c , c++ I ignored this concept of files I can't understand that better . But in python you just nailed it and boom I became a pro with your explanation
non programming background, but able to learn easily ..all because of ur great explanation
Sir these videos are too good. Keep up the good work. You are a genius.
U can also use read() instead of looping
This was awesome. Thank-you for this wonderful practical session
Mind blowing explanation. You are explaining in very easy way. 👌👌👌
So simple explanation, amazing video.
Here you can simply use an in-built function shutil.copy
shutil.copyfileobj(fsrc, fdst[, length])
:
-----------------------------------------------------------
Copy the contents of the file-like object fsrc to the file-like object fdst. The integer length, if given, is the buffer size. In particular, a negative length value means to copy the data without looping over the source data in chunks; by default the data is read in chunks to avoid uncontrolled memory consumption. Note that if the current file position of the fsrc object is not 0, only the contents from the current file position to the end of the file will be copied.
shutil.copyfile(src, dst)
:
---------------------------------------
Copy the contents (no metadata) of the file named src to a file named dst. dst must be the complete target file name; look at shutil.copy() for a copy that accepts a target directory path. If src and dst are the same files, Error is raised. The destination location must be writable; otherwise, an IOError exception will be raised. If dst already exists, it will be replaced. Special files such as character or block devices and pipes cannot be copied with this function. src and dst are path names given as strings.
#insmot
the last one copying the image in other file was magic sir,it was nice to see and watch your videos sir
Hi sir. I can finally learn Python all by my own by watching your videos. Thank you so much for clear explanation and putting so much effort on editing the videos.
One query:
The way we write in C if we want to read/write a file, i.e 'rw'
How can we do this in python?
after mentioning the file name,use r+
i.e,
f=("filename","r+")
Thanks so much, Navin! This is solid way to get introduced into files i/o in python.
best learning tutorial for initial learner and best sharing ones that I have touched and looking for more tutorial sir.
If you are thinking lerning files handling is useless... No its not, I am working on this files handling from past 2.5 years........ Learn this too. Many developers work on this.
This is the best way of teaching....OMG now I'm a big fan of ur videos....without any doubt we can say that....u r the best teacher😍😊😊😊thank you
the best way of educating. In his home page of his channel bro says : We dont teach we educate.
Really informative, apart from knowing about file handling, i learnt many new things , so kudo to you !!
Paid 30k to institute & learning from your videos for free😂
Perfect tutorial for Python file handling! informative and concise!
super mapla u have done a great job Thank u for ur help.
God bless u
You explained it so easily..... U r really very good teacher, i kope that u will be my progressor.
educator, not teacher
Hi, thank you for all of these videos. Highly appreciated.
sir sir this video was awesome it taught me the concept very well in 10m ins whereas i couldn't understand this by taking an 1 hour class
Hello bro i dont know even a single code but i watched and learned from your video thanx
Enjoying this series very much... copying image was inovative
Very well explanation love your channel 👍
I am very greatful of you and I am enjoying the series very much
This was very helpful for my programming class! Thank you! :)
Hi Naveen
Can you please explain **Yield**
And how any more videos would be added to this playlist ? Kindly ans
I would suggest videos should be **1080P** or with more quality, These are great videos, increasing videos quality would add more value for sure, pls do consider for your next videos.
Thanks..!!
Thanks now I have the motto to finish the whole course! i'm at this point!
have anyone noticed that even if he doesn't mention the file name(extension) the code will work but when I tried it I must tell the file type 5:28
Don't understand completely but get idea little bit .
thanks sir
Hi Navin, I’m a new subscriber. I also a new programmer. I am very happy to find you here, however, How can get Data into you workspace before you started coding?
Thank you very much!!!
u r 2 good sir... i like the way u teach... very simple and very informative..... thank u...
Please Make Video on Sqlalchemy ORM tools with Oracle Database.
I am big fan of you sir.
A very helpful playlist of 50+ videos for python beginners 🙏
Please do mention about close() method, handling resource leak !! Love your videos !!
You are born for teaching, keep it up Navin.
You know why bro didnt leave a ♥ for you? If you go to the home page of his channel, you will see a sign saying : We dont teach, we educate.
That's the type of doubt I have ''why do we even need file handling as one could make a separate file and keep on copying it in code rather than analyzing that file and writing separate code for it?"
Navin Sir, you explanation is exquisite, you give wonderful examples and the way you introduce the session by saying Hello Aliens is quite exemplary
EXCELLENT!!!! Thankyou so so much, now I know where to come for my queries :)
Hey watching ur video .. loved it .. please try to solve this program in Python ' topic = file handling'
File F1 = A, B ,C
File F2 = p ,q ,r
Join the file and output should be like:-
A = p
B= q
C =r
If anyone interested solve and write program under my comments
Navin sir meru super💖
TELUSKO really fullfills its name
sir even after watching 8 videos on same topic only u were the one who was able to explain it love ur channel and content sir thanks for the free videos and seamless education u provide us
I was doing course on python by meta in coursera, i was feeling bored but naveen did this boring topic in very intresting way.
nice explain chesaru sir,thanks.
Sir Its really helpful when we get this high level of Teaching without attaining costly classes which are there in market ..... Thank you so much sir !!! But please add videos on CSV and PANDAS it would be helpful .... once again thanks a lot Sir !!!
😅 truee
Sir u teach superb u have made the coding very easy for me
I just liked this topic and it's interesting that open the image file and writing into another file
The tutorial is good. It will be good to convey about the file close operation as well..otherwise this will result in handle leaks.
U should demonstrate multiple uses of built in functions such as
file.readline().strip()
I have no idea what this does or what I can do with it
great video...now i really understood files in python
I'm so glad I found this tutorial
'''Even this works for copying a file to another file'''
f=open('xyz.txt','r')
f1=open('abc.txt','w')
f1.write(f.read())
your channel is so nice and helpful ..thanks for this great tutorial ..from mauritania
You are too Good Sir Navine... Respect to you, respect to you once more...
I have a doubt I have written the same thing but it is giving me error
wow best video for this topic
Great example case Naveen Sir
Especially the img file
Yes. I am enjoying the series. But I would like a detailed tutorial on BeautifulSoup and Regular Expressions. If you can please include that in your video tutorials
I could stop myself from commenting..this video ia golden and that last part i loved it!
Extremely useful. Thank you!
Sir,your videos are very helpful but I find your videos with facecam more interactive,
True Bro !!!!
Thank you.....thank you.....thank you.....so much sir......
You are too good....
Love your teaching....
for data in f:
f1.write(data)
sir here for the first loop, the first line will get printed in mydata.but y for the second time it is not over writing the second line over first. inspite it is appending everything
best explanation on TH-cam.
Love your videos vvvvvvvmuch❤
Need to know how python is used in Data science, business analytics, please upload tuturial/s with real life projects (A to Z) so we'll go ahead with our theory learning.
You can get ride of the line jump with just end=''. Also I believe 'with open(...) as f' is better, and auto-closes the steam of data, so we don't need to use f.close()
great video... today is my semester exam🙂
Sir I'm trying to settle in Artificial intelligence side, plz give me suggest to what could I learn for settle in AI
we lost something,we lost people......it got my attention while I was concentrating on my food at 07:55
Yes, I am enjoying the series.
I really miss your expressions sir !!
Please include your face expressions also …that really Makes a difference
Sir your awesomeness is infinitely high sir actually my online classes are going on and it's too boring so i started to see your vid my ma'am teaches for 45 mins on what u took only hardly 2 mins she taught only about f.read("myfiles","r") for 45 mins oh my god I learnt upto operating images in hardly 12 mins omg it's fabulous sir our due respects for u sir .... Sir a small suggestions I want to learn ethical hacking please put some videos on that topic please for your regular viewer and may be your student thanks a lot for the videos sir 😍😍😍😍
Sir you are amazing.
You made things so simple.
Videos are made in fast forward motion. Anyway.. I slow it down to 0.75 to listen. Awesome explanation
You re too good thank you
It is really better when you appear in the tutorial , that make it more real and thank you again
The video on file handling using python is really good. Could you please make video on how to integrate Google spreadsheet with python?
Thank you sir for making ur time for us about this python series it's very useful for me I enjoyed it and it's in a simple basic terms to be understandable for any person