#65 Python Tutorial for Beginners | File handling

Поделиться
HTML-код
  • Опубликовано: 17 дек 2024

Комментарии • 546

  • @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 5 месяцев назад

      his way of educating not teaching.

  • @rivalkido1162
    @rivalkido1162 4 года назад +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..!!

  • @pranalidhande1118
    @pranalidhande1118 5 лет назад +27

    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

  • @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

  • @ravikanthduvvuri392
    @ravikanthduvvuri392 3 года назад +10

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

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

  • @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

  • @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.

  • @zakiasmaa6834
    @zakiasmaa6834 4 месяца назад

    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,

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

  • @sankarsan
    @sankarsan 4 года назад +3

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

  • @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 ....

  • @muvvalamounika4300
    @muvvalamounika4300 4 года назад +1

    All your videos are very simple and understandable , thanks

  • @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

  • @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?

  • @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.

  • @melavlogs9842
    @melavlogs9842 3 года назад +1

    Super bro... Chala simple and manchiga explain chesaru

  • @AhmedBarakaDBA
    @AhmedBarakaDBA Год назад

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

  • @wisdomoregfx
    @wisdomoregfx 7 месяцев назад +1

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

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

  • @uarangat
    @uarangat 4 года назад +1

    You are born for teaching, keep it up Navin.

    • @KeremAli-cm3pj
      @KeremAli-cm3pj 5 месяцев назад +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.

  • @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 5 месяцев назад

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

  • @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

  • @safibelim5587
    @safibelim5587 4 года назад

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

  • @mehulaggarwal7776
    @mehulaggarwal7776 5 лет назад +2

    Very well explanation love your channel 👍

  • @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

  • @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

  • @codex8332
    @codex8332 4 года назад

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

  • @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

  • @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.

  • @MrCEO-jw1vm
    @MrCEO-jw1vm 7 месяцев назад

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

  • @sanskritijaiswal8232
    @sanskritijaiswal8232 2 года назад +1

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

  • @vivekverma4050
    @vivekverma4050 4 года назад

    best explanation on RUclips.
    Love your videos vvvvvvvmuch❤

  • @parellamanikanta6834
    @parellamanikanta6834 4 года назад +12

    Navin sir meru super💖
    TELUSKO really fullfills its name

  • @harshavardhan4523
    @harshavardhan4523 4 года назад

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

  • @zeeshanshahidansari9425
    @zeeshanshahidansari9425 4 года назад +2

    Sir you are amazing.
    You made things so simple.

  • @chessbd
    @chessbd Год назад

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

  • @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+")

  • @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

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

  • @khunmyohtike2185
    @khunmyohtike2185 3 года назад

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

  • @aryanshisode5644
    @aryanshisode5644 2 года назад

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

  • @deadart7505
    @deadart7505 5 лет назад +1

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

  • @ganeshmane
    @ganeshmane 4 года назад

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

  • @ratnarajanand9407
    @ratnarajanand9407 4 года назад

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

  • @ojasviagrawal3180
    @ojasviagrawal3180 3 года назад

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

  • @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

  • @poojankulshreshtha1358
    @poojankulshreshtha1358 4 года назад

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

  • @rajeshraj-rg5du
    @rajeshraj-rg5du 6 лет назад +2

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

  • @ritikaagarwal7
    @ritikaagarwal7 3 года назад

    I could stop myself from commenting..this video ia golden and that last part i loved 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

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

  • @Entertainmenteveryhour
    @Entertainmenteveryhour 4 года назад

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

  • @georgiaaalouise
    @georgiaaalouise Год назад

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

  • @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

  • @bibin6038
    @bibin6038 3 года назад

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

  • @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.

  • @miteshpadiya1678
    @miteshpadiya1678 4 года назад

    In advance congratulation for" 1 million" subs.🎉🎉🎂🎂

  • @davie-on8gh
    @davie-on8gh 3 года назад

    Perfect tutorial for Python file handling! informative and concise!

  • @tuttejkumar6713
    @tuttejkumar6713 2 года назад +1

    nice explain chesaru sir,thanks.

  • @karanparwani2829
    @karanparwani2829 6 лет назад +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 !!!

  • @XAVIERYMARIGON
    @XAVIERYMARIGON 12 дней назад +1

    Smart. Effective. Efficient.

  • @grodemo276
    @grodemo276 3 года назад

    ❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️lots of love sir I never feel single with you😂................you made me dedicated towards my passion

  • @Ayasir-lo3ir
    @Ayasir-lo3ir 4 года назад +39

    did he just called me alien

    • @sydmry
      @sydmry 4 года назад +1

      Are u a HUGE fan of Dragon Ball?

    • @realnileshpawar
      @realnileshpawar 3 года назад +2

      Yes, we coders are aliens, humans have no guts to enter in this industry 😁😁😁😁.

    • @raghavshukla1090
      @raghavshukla1090 3 года назад

      you are a saiyan after all, gotta handle racism

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

  • @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.

  • @gopeshsingh61
    @gopeshsingh61 6 лет назад +1

    Hello Sir,
    Can you please provide tutorial on how to make database connection with python.
    And if you can just give a practical demo with some small project containing web development (Django) and backend with Python

  • @nijanthannijanthan3266
    @nijanthannijanthan3266 Год назад

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

  • @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

  • @nav5069
    @nav5069 5 лет назад

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

  • @medmolay8627
    @medmolay8627 5 лет назад +1

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

  • @SalmanPathan-rd2se
    @SalmanPathan-rd2se 4 года назад

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

  • @Nathanian_daniels
    @Nathanian_daniels 4 года назад +1

    U can also use read() instead of looping

  • @ktaakash
    @ktaakash 4 года назад

    Great example case Naveen Sir
    Especially the img file

  • @dsalgos
    @dsalgos 5 месяцев назад

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

  • @banti000
    @banti000 5 лет назад

    Hi Navin,
    1.when u printed the opened file in binary it contains other than binary also.
    2. Need of closing file

  • @puneethnaika
    @puneethnaika 2 года назад +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.

  • @1987sreenath
    @1987sreenath 5 лет назад

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

  • @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

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

  • @hithyshree.lhithu526
    @hithyshree.lhithu526 Год назад +1

    Hiii Sir,
    Superr teaching👌
    But can you teach little slow🗣bcs i can't catch your teaching🙄

    • @easydatascience2508
      @easydatascience2508 Год назад +1

      Hei, you can watch mine too. The playlists for Python and R provide most of the fundamentals, with detailed ppt and coding window. Source files can be downloaded, you can find the link in the description of the window.

    • @hithyshree.lhithu526
      @hithyshree.lhithu526 Год назад +1

      Kk sir
      Thank youu

  • @abhishekpiriya35
    @abhishekpiriya35 Год назад +6

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

  • @divya_yerva8974
    @divya_yerva8974 3 года назад

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

  • @yashhirulkar909
    @yashhirulkar909 4 года назад

    sir ur explanation is really nice....really like it..!

  • @pseudohawk1656
    @pseudohawk1656 Год назад

    Really great and to the point lecture. Thanks

  • @ultraunboxer5647
    @ultraunboxer5647 3 года назад +1

    wow best video for this topic

  • @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

  • @lifefan1
    @lifefan1 2 года назад

    Extremely useful. Thank you!

  • @amirsayyad1662
    @amirsayyad1662 6 лет назад +6

    sir how did you upload that jpg file in pycharm?

    • @ankitavaibhav4057
      @ankitavaibhav4057 4 года назад

      Just go to file and select "open" and u can select ur image

  • @laxmipawar8508
    @laxmipawar8508 5 лет назад +11

    How to add Image in Pycharm?

    • @poojapanday2610
      @poojapanday2610 5 лет назад

      even i also have the same dowt?

    • @elugamrajashekar9874
      @elugamrajashekar9874 5 лет назад

      Which image file you want, first copy that image. then after you will find the pycharm location/path in your pc/system. may be the pycharm folder located in 'C' - drive. then you move that specific file location. copied image paste it here ( Here the remember, the copied image where you can pasted. I mean folder name in Pycharm. In case you don't have a any folder, create new folder. Like 'Pooja Pics'.).
      Now open pycharm, select 'Pooja Pics' folder. Your copied image is their. You have any doubt reply me.

    • @elugamrajashekar9874
      @elugamrajashekar9874 5 лет назад

      Which image file you want, first copy that image. then after you will find the pycharm location/path in your pc/system. may be the pycharm folder located in 'C' - drive. then you move that specific file location. copied image paste it here ( Here the remember, the copied image where you can pasted. I mean folder name in Pycharm. In case you don't have a any folder, create new folder. Like 'Lakshmi Pics'.).
      Now open pycharm, select 'Lakshmi Pics' folder. Your copied image is their. You have any doubt reply me.

  • @camilakorpys
    @camilakorpys 4 года назад +56

    Is this magic mom?
    No son, this is programming :)

  • @Ice2k06
    @Ice2k06 4 месяца назад

    I'm so glad I found this tutorial

  • @r.pandey8441
    @r.pandey8441 6 лет назад +1

    Hi sir, I am learning python following your tutorials.it is really great. When the next part of threading will be uploaded.