#65 Python Tutorial for Beginners | File handling

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 พ.ย. 2024

ความคิดเห็น • 543

  • @SJY11
    @SJY11 3 ปีที่แล้ว +43

    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!

  • @umarani6369
    @umarani6369 4 ปีที่แล้ว +33

    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

    • @KeremAli-cm3pj
      @KeremAli-cm3pj 4 หลายเดือนก่อน

      his way of educating not teaching.

  • @rivalkido1162
    @rivalkido1162 3 ปีที่แล้ว +16

    best python course in youtube
    NAVIN SIR IS THE BEST

  • @aishwaryalaxmiveeramalla739
    @aishwaryalaxmiveeramalla739 4 ปีที่แล้ว +64

    This is the best platform i've found to learn. Awesome work :)

  • @aishwaryakudatarkar3891
    @aishwaryakudatarkar3891 4 ปีที่แล้ว +13

    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..!!

  • @keshavdamani1273
    @keshavdamani1273 5 ปีที่แล้ว +11

    Love from Rajasthan !
    Saw you on mySirG platform and followed you !
    You are having very good explanation skills ! thank You sir

  • @zakiasmaa6834
    @zakiasmaa6834 3 หลายเดือนก่อน

    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,

  • @harshaldeore
    @harshaldeore 6 ปีที่แล้ว +11

    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.

  • @vamsirajagiri9090
    @vamsirajagiri9090 4 ปีที่แล้ว

    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 🤩🥰

  • @souravaich6620
    @souravaich6620 6 ปีที่แล้ว +5

    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

  • @meghachovatiya1834
    @meghachovatiya1834 3 ปีที่แล้ว +3

    The last part of the video was something different I learned! Thank you!

  • @neerajnainwal7310
    @neerajnainwal7310 4 ปีที่แล้ว

    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.

  • @NoelMathew16
    @NoelMathew16 2 ปีที่แล้ว

    I had a big confusion with this file handling....but after watching ur video its clear now some part i can say.
    Thankyou ....

  • @ravikanthduvvuri392
    @ravikanthduvvuri392 3 ปีที่แล้ว +10

    This topic is little bit confusing but this is so interesting and thanks for this awesome series sir ☺️

  • @renumaradani4776
    @renumaradani4776 4 ปีที่แล้ว

    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

  • @pranalidhande1118
    @pranalidhande1118 5 ปีที่แล้ว +26

    What if we need to read any specific line from file?

    • @LithinKumar2207
      @LithinKumar2207 2 ปีที่แล้ว +6

      Just mention the print(filenama,readline())once
      If you want to read some line then keep it in a for loop

  • @muvvalamounika4300
    @muvvalamounika4300 4 ปีที่แล้ว +1

    All your videos are very simple and understandable , thanks

  • @AhmedBarakaDBA
    @AhmedBarakaDBA ปีที่แล้ว

    It's generally a good practice to close a file after you're finished processing its contents. Thanks for the awesome vides.

  • @melavlogs9842
    @melavlogs9842 3 ปีที่แล้ว +1

    Super bro... Chala simple and manchiga explain chesaru

  • @sai-nu1ec
    @sai-nu1ec 3 ปีที่แล้ว +1

    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?

  • @chinmaydas4053
    @chinmaydas4053 6 ปีที่แล้ว +22

    Yes sir good topic file handling, generally this topic is ignored.. 🙏🙏..

  • @automationneemo
    @automationneemo 4 ปีที่แล้ว +4

    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!

  • @wisdomoregfx
    @wisdomoregfx 6 หลายเดือนก่อน +1

    Thank you sir... You are the best teacher ❤❤

  • @vinayakgite7828
    @vinayakgite7828 5 ปีที่แล้ว

    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.

  • @David-mk8kh
    @David-mk8kh 4 ปีที่แล้ว

    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

  • @Rpsamy0745
    @Rpsamy0745 2 ปีที่แล้ว

    non programming background, but able to learn easily ..all because of ur great explanation

  • @sankarsan
    @sankarsan 4 ปีที่แล้ว +3

    Sir these videos are too good. Keep up the good work. You are a genius.

  • @Nathanian_daniels
    @Nathanian_daniels 3 ปีที่แล้ว +1

    U can also use read() instead of looping

  • @sanskritijaiswal8232
    @sanskritijaiswal8232 2 ปีที่แล้ว +1

    This was awesome. Thank-you for this wonderful practical session

  • @safibelim5587
    @safibelim5587 4 ปีที่แล้ว

    Mind blowing explanation. You are explaining in very easy way. 👌👌👌

  • @NitinJainNoida
    @NitinJainNoida 5 ปีที่แล้ว

    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

  • @nithyashreenaidu8357
    @nithyashreenaidu8357 4 ปีที่แล้ว

    the last one copying the image in other file was magic sir,it was nice to see and watch your videos sir

  • @kalyanikhekale344
    @kalyanikhekale344 4 ปีที่แล้ว +1

    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?

    • @itsme-rl5ep
      @itsme-rl5ep 4 ปีที่แล้ว +2

      after mentioning the file name,use r+
      i.e,
      f=("filename","r+")

  • @MrCEO-jw1vm
    @MrCEO-jw1vm 6 หลายเดือนก่อน

    Thanks so much, Navin! This is solid way to get introduced into files i/o in python.

  • @khunmyohtike2185
    @khunmyohtike2185 3 ปีที่แล้ว

    best learning tutorial for initial learner and best sharing ones that I have touched and looking for more tutorial sir.

  • @Varun-ij2pp
    @Varun-ij2pp 3 ปีที่แล้ว

    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.

  • @karthikachandran7598
    @karthikachandran7598 3 ปีที่แล้ว

    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

    • @KeremAli-cm3pj
      @KeremAli-cm3pj 4 หลายเดือนก่อน

      the best way of educating. In his home page of his channel bro says : We dont teach we educate.

  • @aryanshisode5644
    @aryanshisode5644 2 ปีที่แล้ว

    Really informative, apart from knowing about file handling, i learnt many new things , so kudo to you !!

  • @abhishekpiriya35
    @abhishekpiriya35 ปีที่แล้ว +6

    Paid 30k to institute & learning from your videos for free😂

  • @davie-on8gh
    @davie-on8gh 3 ปีที่แล้ว

    Perfect tutorial for Python file handling! informative and concise!

  • @bibin6038
    @bibin6038 3 ปีที่แล้ว

    super mapla u have done a great job Thank u for ur help.
    God bless u

  • @deadart7505
    @deadart7505 5 ปีที่แล้ว +1

    You explained it so easily..... U r really very good teacher, i kope that u will be my progressor.

    • @KeremAli-cm3pj
      @KeremAli-cm3pj 4 หลายเดือนก่อน

      educator, not teacher

  • @hoseam4537
    @hoseam4537 5 ปีที่แล้ว +2

    Hi, thank you for all of these videos. Highly appreciated.

  • @yashagarwal3999
    @yashagarwal3999 4 ปีที่แล้ว

    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

  • @nijanthannijanthan3266
    @nijanthannijanthan3266 ปีที่แล้ว

    Hello bro i dont know even a single code but i watched and learned from your video thanx

  • @harshavardhan4523
    @harshavardhan4523 4 ปีที่แล้ว

    Enjoying this series very much... copying image was inovative

  • @mehulaggarwal7776
    @mehulaggarwal7776 5 ปีที่แล้ว +2

    Very well explanation love your channel 👍

  • @ganeshmane
    @ganeshmane 4 ปีที่แล้ว

    I am very greatful of you and I am enjoying the series very much

  • @georgiaaalouise
    @georgiaaalouise ปีที่แล้ว

    This was very helpful for my programming class! Thank you! :)

  • @Real-IndianArmyFan
    @Real-IndianArmyFan 6 ปีที่แล้ว +2

    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..!!

  • @chessbd
    @chessbd ปีที่แล้ว

    Thanks now I have the motto to finish the whole course! i'm at this point!

  • @ALLINONE-xg2uc
    @ALLINONE-xg2uc 3 ปีที่แล้ว +5

    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

  • @Entertainmenteveryhour
    @Entertainmenteveryhour 4 ปีที่แล้ว

    Don't understand completely but get idea little bit .
    thanks sir

  • @AngelaSMak
    @AngelaSMak 5 ปีที่แล้ว +3

    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!!!

  • @ratnarajanand9407
    @ratnarajanand9407 4 ปีที่แล้ว

    u r 2 good sir... i like the way u teach... very simple and very informative..... thank u...

  • @rajeshraj-rg5du
    @rajeshraj-rg5du 6 ปีที่แล้ว +2

    Please Make Video on Sqlalchemy ORM tools with Oracle Database.
    I am big fan of you sir.

  • @nav5069
    @nav5069 5 ปีที่แล้ว

    A very helpful playlist of 50+ videos for python beginners 🙏

  • @dsalgos
    @dsalgos 4 หลายเดือนก่อน

    Please do mention about close() method, handling resource leak !! Love your videos !!

  • @uarangat
    @uarangat 4 ปีที่แล้ว +1

    You are born for teaching, keep it up Navin.

    • @KeremAli-cm3pj
      @KeremAli-cm3pj 4 หลายเดือนก่อน +1

      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.

  • @saakshat__kataria
    @saakshat__kataria 3 ปีที่แล้ว +1

    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?"

  • @ashishjha345
    @ashishjha345 2 ปีที่แล้ว

    Navin Sir, you explanation is exquisite, you give wonderful examples and the way you introduce the session by saying Hello Aliens is quite exemplary

  • @ojasviagrawal3180
    @ojasviagrawal3180 3 ปีที่แล้ว

    EXCELLENT!!!! Thankyou so so much, now I know where to come for my queries :)

  • @Tejasjourneyofficial
    @Tejasjourneyofficial 4 ปีที่แล้ว

    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

  • @parellamanikanta6834
    @parellamanikanta6834 4 ปีที่แล้ว +12

    Navin sir meru super💖
    TELUSKO really fullfills its name

  • @HariPrasad-mn5vu
    @HariPrasad-mn5vu 3 ปีที่แล้ว

    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

  • @puneethnaika
    @puneethnaika ปีที่แล้ว +1

    I was doing course on python by meta in coursera, i was feeling bored but naveen did this boring topic in very intresting way.

  • @tuttejkumar6713
    @tuttejkumar6713 2 ปีที่แล้ว +1

    nice explain chesaru sir,thanks.

  • @karanparwani2829
    @karanparwani2829 5 ปีที่แล้ว +2

    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 !!!

  • @sportiz8909
    @sportiz8909 6 ปีที่แล้ว

    Sir u teach superb u have made the coding very easy for me

  • @divya_yerva8974
    @divya_yerva8974 3 ปีที่แล้ว

    I just liked this topic and it's interesting that open the image file and writing into another file

  • @vanip9814
    @vanip9814 2 ปีที่แล้ว

    The tutorial is good. It will be good to convey about the file close operation as well..otherwise this will result in handle leaks.

  • @randz5
    @randz5 4 ปีที่แล้ว

    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

  • @1987sreenath
    @1987sreenath 5 ปีที่แล้ว

    great video...now i really understood files in python

  • @Ice2k06
    @Ice2k06 3 หลายเดือนก่อน

    I'm so glad I found this tutorial

  • @peacist5098
    @peacist5098 3 ปีที่แล้ว

    '''Even this works for copying a file to another file'''
    f=open('xyz.txt','r')
    f1=open('abc.txt','w')
    f1.write(f.read())

  • @medmolay8627
    @medmolay8627 5 ปีที่แล้ว +1

    your channel is so nice and helpful ..thanks for this great tutorial ..from mauritania

  • @codex8332
    @codex8332 4 ปีที่แล้ว

    You are too Good Sir Navine... Respect to you, respect to you once more...

  • @ShivamSharma___
    @ShivamSharma___ 3 ปีที่แล้ว +2

    I have a doubt I have written the same thing but it is giving me error

  • @ultraunboxer5647
    @ultraunboxer5647 3 ปีที่แล้ว +1

    wow best video for this topic

  • @ktaakash
    @ktaakash 4 ปีที่แล้ว

    Great example case Naveen Sir
    Especially the img file

  • @rajansomanathan7517
    @rajansomanathan7517 5 ปีที่แล้ว +1

    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

  • @ritikaagarwal7
    @ritikaagarwal7 3 ปีที่แล้ว

    I could stop myself from commenting..this video ia golden and that last part i loved it!

  • @lifefan1
    @lifefan1 2 ปีที่แล้ว

    Extremely useful. Thank you!

  • @neiltrivedi696
    @neiltrivedi696 6 ปีที่แล้ว +4

    Sir,your videos are very helpful but I find your videos with facecam more interactive,

  • @SalmanPathan-rd2se
    @SalmanPathan-rd2se 4 ปีที่แล้ว

    Thank you.....thank you.....thank you.....so much sir......
    You are too good....
    Love your teaching....

  • @kalyanasundaram9021
    @kalyanasundaram9021 5 ปีที่แล้ว +1

    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

  • @vivekverma4050
    @vivekverma4050 4 ปีที่แล้ว

    best explanation on TH-cam.
    Love your videos vvvvvvvmuch❤

  • @syedobaydurrahman9921
    @syedobaydurrahman9921 6 ปีที่แล้ว

    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.

  • @Skaxarrat
    @Skaxarrat 6 ปีที่แล้ว

    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()

  • @priyankagehlot9945
    @priyankagehlot9945 11 หลายเดือนก่อน +1

    great video... today is my semester exam🙂

  • @laguduchakradhar4972
    @laguduchakradhar4972 3 ปีที่แล้ว +1

    Sir I'm trying to settle in Artificial intelligence side, plz give me suggest to what could I learn for settle in AI

  • @poojankulshreshtha1358
    @poojankulshreshtha1358 4 ปีที่แล้ว

    we lost something,we lost people......it got my attention while I was concentrating on my food at 07:55

  • @ranjana_official
    @ranjana_official 5 ปีที่แล้ว

    Yes, I am enjoying the series.

  • @rohanram7197
    @rohanram7197 5 ปีที่แล้ว +3

    I really miss your expressions sir !!
    Please include your face expressions also …that really Makes a difference

  • @vetrithirumagan8507
    @vetrithirumagan8507 4 ปีที่แล้ว

    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 😍😍😍😍

  • @zeeshanshahidansari9425
    @zeeshanshahidansari9425 4 ปีที่แล้ว +2

    Sir you are amazing.
    You made things so simple.

  • @arpitaingermany
    @arpitaingermany 6 ปีที่แล้ว

    Videos are made in fast forward motion. Anyway.. I slow it down to 0.75 to listen. Awesome explanation

  • @rehamshouman8402
    @rehamshouman8402 5 ปีที่แล้ว

    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

  • @KhabulShaik
    @KhabulShaik 5 ปีที่แล้ว

    The video on file handling using python is really good. Could you please make video on how to integrate Google spreadsheet with python?

  • @sairajyadav8930
    @sairajyadav8930 ปีที่แล้ว

    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