#65 Python Tutorial for Beginners | File handling

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

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

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

    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 2 หลายเดือนก่อน

      his way of educating not teaching.

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

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

  • @SJY11
    @SJY11 2 ปีที่แล้ว +41

    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!

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

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

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

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

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

    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

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

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

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

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

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

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

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

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

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

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

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

    best python course in youtube
    NAVIN SIR IS THE BEST

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

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

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

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

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

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

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

    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 2 หลายเดือนก่อน

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

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

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

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

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

    I'm so glad I found this tutorial

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

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

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

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

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

    Perfect tutorial for Python file handling! informative and concise!

  • @Ayasir-lo3ir
    @Ayasir-lo3ir 4 ปีที่แล้ว +39

    did he just called me alien

    • @sydmry
      @sydmry 3 ปีที่แล้ว +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

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

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

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

    Amazing 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

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

    Thank you sir for making the concepts simple to grasp and arousing an interest to ace it.

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

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

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

  • @harshaldeore
    @harshaldeore 5 ปีที่แล้ว +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.

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

    Really a excellent stuff my dear, no doubt those were amazing videos,
    i would like to express a doubt, that is
    i would need some guidance that how to copy one row in xls(excel) and paste in other row through python..
    likewise, performing calculations on two cells in excel sheet and to put the result in particular cell.
    any guidance on this excel related queries in python.. please

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

    Learned a lot from you . . . Thanks

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

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

  • @abhishekjadhav9289
    @abhishekjadhav9289 2 หลายเดือนก่อน

    Hi Navin, I am enjoying this series. However in couple of videos, I asked some questions in comment section regarding things I did not understand in that particular video, but I received no reply from you. Not sure if there is any other modes through which I can post my question to you.

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

    Such type of tutorials are awesome always

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

    Thank you for making this video, you saved my day. Thanks

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

    Naveen you are great

  • @HimanshuSharma-xb7ol
    @HimanshuSharma-xb7ol 4 ปีที่แล้ว

    thank you sir for your efforts.

  • @Mr.Aswin_Das
    @Mr.Aswin_Das 4 ปีที่แล้ว

    Thanks for your helps man... Really appreciate that

  • @HimanshuVerma-rr2ww
    @HimanshuVerma-rr2ww 5 ปีที่แล้ว

    Your teaching is like a magic waoooo...

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

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

    U r an awesome teacher.....but font of this video is very small

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

    Thank you!

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

    That's awesome,it would take a whole bunch of line to enumerate everything you have done and is doing for us ..thank you sir

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

    How to use file handling(this topic) on idle python..?

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

    You’re amazing!

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

    When I typed this, the full first line got printed, I thought it will print the first 4 characters of line 1 and line 2 in full. What is the reason for this outcome?
    f = open('Mydata.txt', 'r')
    print(f.readline(4), end='')
    print(f.readline())
    # Output : My Name is Navin Reddy

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

    We Want more vedios on file handling in python

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

    Hi Naveen can you upload a video to find the duplicate words in a file and increase the counter as the dups are found?

  • @noone-cc7qq
    @noone-cc7qq 4 ปีที่แล้ว

    totally outstanding

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

    did he say "welcome back aliens" !?

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

    That pic part was awsome
    Thanks

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

    Hey bro I understood everything Love ya

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

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

    Thanks , i like your detailed explanations, you are doing a great job ! And I'm sure those 42 people meant to like it ;) I agree about zooming in : in this video symbol 'f' was only readable in a full screen mode, which is not always convenient, but it's okay even as it is :) overall thanks :)

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

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

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

    can we use read and write at the same time

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

    How to add Image in Pycharm?

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

      even i also have the same dowt?

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

      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 4 ปีที่แล้ว

      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.

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

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

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

    How to save or copy number of pages say for example two pages and data’s were in rows and columns

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

    How can I enter values into a file?
    like make a variable inside a file and be able to change it indirectly

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

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

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

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

    Thank you sir

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

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

    Could you tell me how to read properties of a file?
    Suppose, I have a file myimage.jpg/.bmp or any other extensions. Now I want to know about the size of the file, name of the file, extension of the file, resolution of the image, and many more properties. How can I do this?
    Thanks in advance!

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

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

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

    Mast Ekdm....

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

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

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

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

    tq bro

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

    hey @telusko can you make videos on seek function in files ????....thanx

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

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

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

    Sir i have completed BCA.(2018 passed out). And i have certificate for C and C++. How can get job in MNCs like google,microsoft,infosys? should i need any additional course? And i would like to study PG in distance education method. If i would complete pg, is there any possibilities available to get a job?

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

      @Poorna Chand Thank you..😊

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

      According to me, I solely believe that it all depends on the passion you have for your work. If you are interested in learning new technologies or catching up with new programming languages, then you must go forth. There are immense opportunities for those who desire to make a difference. Hence, I would suggest learn what you are really passionate about and just keep honing the skills as you acquire them. I'm sure you will pave your way into the MNCs.

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

    how to find sum of N digits on a output console where N digits is from different file

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

    loved it

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

    Sir i want to ask one question
    If we have huge unstructured data and we want to find the occurrence of a particular string like in flipkart file data we want to find 'sales' string numbers of occurrence then how can we find it in file handling

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

    helpful

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

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

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

    u r awesome !!!!

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

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

    This isn't working for me even I wrote the same code..!!!

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

    Sir I want to add a new line character in append function but i am not able to use as it says that 2 arguments given required 1. So what should i do

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

    Thank u so much Sir! love from Pakistan

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

    TH-cam Caption: Welcome back aliens my name is 720 ...... 😂😅

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

    thanks

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

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

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

    keep it up brodaaaaa !!!!!

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

    That last copying image is super, but there is no clarity for phone users.

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

    sir, I need more examples on file handeling .

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

    that background music is simply very very annoying. Preferred your initial videos where it wasn't there.

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

    Sir its showing Unocode error. and after checking on stackover flow i tried that medhots but then it showing file does not exist even ive made the file

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

    tq

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

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

    So nice

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

    Where should be text file stored for opening please answer... 🥺🥺