How to Work with Files in Python? (Add Contents to File + Read Text from Files ) #26

Поділитися
Вставка
  • Опубліковано 5 вер 2024

КОМЕНТАРІ • 52

  • @programizstudios
    @programizstudios  2 роки тому +1

    🔥Finding it Damn Hard to Understand Python?
    Learn to code-the right way-with interactive lessons, quizzes & challenges. Build a strong programming base; it's IMPORTANT!
    Try Programiz PRO for Free: bit.ly/interactive-py

  • @informerravi4288
    @informerravi4288 3 роки тому +11

    I LOVE THAT WAY U TEACH IN SIMPLE AND EASY WAY.

  • @stephenyuenger5077
    @stephenyuenger5077 2 роки тому +10

    I find your videos most helpful. With 50+ years in software development I am very new to Python and while making progress I find one element difficult. I am trying to attach additional Python functions/libraries and haven't solved that issue. I want to add "tinytag" so I can obtain the meta code for my personal music and video libraries. I seem to be missing something simple. Can you direct me?

    • @hari-speaks
      @hari-speaks Рік тому

      hey man seems like you have much experience in software. would you recommand that to me if you dont mind can you say about that ?

  • @carost2
    @carost2 Рік тому

    Maan. I do love when people explain programming in a easy manner. Keep posting my guy

  • @JonathanKarr33
    @JonathanKarr33 3 роки тому +7

    I really enjoy your videos, and I hope that your channel continues to grow. I just subscribed, and it's amazing to see that we have a very similar passion for teaching others to code on UA-cam.

  • @mommy904
    @mommy904 2 роки тому

    Whenever I am having a hard time understanding I come find one of your videos and I always start understanding better. Thank you!!!

  • @juanmicciollo4921
    @juanmicciollo4921 Рік тому

    You are one of the best, my friend.

  • @tevindouglas2932
    @tevindouglas2932 2 роки тому

    I don't comment on videos often.... But man, YOU DID A GREAT JOB WITH THIS VIDEO!!!

  • @daxvshah11
    @daxvshah11 3 роки тому +4

    I just wish that your 13k turns to 1.3m subs 😉
    Btw, sir, can you please make a video on the seek and tell method. Especially, how does it count the characters and EOLs in tell method?

  • @bhagyavf
    @bhagyavf 3 роки тому +2

    Hai, Can you just do a complete video of installing any of the Python IDE to MacOS and related things with running some programs?

  • @ComputerScienceSimplified
    @ComputerScienceSimplified 3 роки тому +5

    Awesome video, keep up the great work! :)

  • @looserwinner329
    @looserwinner329 2 роки тому +1

    Simple yet effective

  • @shrirajthakare274
    @shrirajthakare274 2 роки тому +1

    ur vids are fabuluosly well curated and taught,plz keep making more.Can u plz explore the python libraries 1 by 1?

  • @siddarthholt9640
    @siddarthholt9640 2 роки тому

    Wow amazing……I just came for file. Now I’ll go back and go through all the classes

  • @moniquebrasilbaptista1989
    @moniquebrasilbaptista1989 Рік тому

    It helps me a lot!!! Thanks a million! 🤩

  • @adiljaved1725
    @adiljaved1725 Рік тому

    you are awsome man .....keep up the good work ,,,,,superb

  • @itzmartin20
    @itzmartin20 Рік тому

    your videos are great, this one is not an exception.Thank you programiz team and congrat on 100k sub!

  • @pamelamaecado8188
    @pamelamaecado8188 Рік тому

    Yesterday i have an exam using this programing language and this topic .. sadly its wrong becuase i dont know the appending works like i dont have any idea . So i tried searching in programiz youtube in your channel and now here i am, thinking why i did not think of this soon enough 😢😢😢 anyway thank you so much for this video, i hope we have a remedial exam in our next lesson which is tomorrow so that i can have another second chance 😢😂❤

  • @kevinh3238
    @kevinh3238 2 роки тому +1

    What if I wanted to add numbers into the file. Do I need to define them as integers or is it not possible?

  • @abhijitmishra646
    @abhijitmishra646 3 роки тому +1

    Really an insightful video

  • @gurman._.12
    @gurman._.12 2 роки тому

    Very helpful and detailed chapter👍🏻
    But a doubt.
    Could you please tell us if there's any way to perform data handling python programs on android or IOS phones?

  • @sleepyangel1972
    @sleepyangel1972 2 роки тому

    this is great! super helpful and easy to understand. Subscribed

  • @usertuserb7057
    @usertuserb7057 3 роки тому

    thanks a lot ,
    verry helpful video.
    your friend from Alegria.
    new subscriber.

  • @dineshraghavanv3270
    @dineshraghavanv3270 2 роки тому

    why is programming getting printed in second line while we use read(12)

  • @MrMaxinho
    @MrMaxinho 3 роки тому +1

    Hey bud, first wanna say thanks for these videos. Super helpful! But I'm hitting a snag with opening .txt files atm. I'm using Jupyter, and apparently it doesn't work the same as what you are using. Got any advice on that? Thanks again!

  • @matthewpenner2348
    @matthewpenner2348 3 роки тому

    you are a great teacher! thanks!!

  • @programmingbezaleel
    @programmingbezaleel Рік тому

    Thank u sir

  • @x.d3723
    @x.d3723 Рік тому

    how we can read input data from console like a file?

  • @DRDNA24
    @DRDNA24 Рік тому

    how to open the file we write ?? i am using the read method but am unable to do so.please help

  • @sebqatakram1640
    @sebqatakram1640 2 роки тому

    So helpful! Thank you!!!

  • @mirzazaperi5081
    @mirzazaperi5081 3 роки тому

    Thank you for your sharing ....👍👍👍👍

  • @ceciliaw1065
    @ceciliaw1065 2 роки тому

    Thank you! Super helpful content

  • @shreyaskulkarni526
    @shreyaskulkarni526 3 роки тому

    Thanks a lot for this video. I really learned a lot.

  • @frankie_goestohollywood
    @frankie_goestohollywood 3 роки тому

    Excellent!! Bohot Shukria :-)

  • @riyabgia7220
    @riyabgia7220 3 роки тому

    Thank you so much. It was really helpful.

  • @orenyehezkely8101
    @orenyehezkely8101 3 роки тому

    Very good video. Thanks!

  • @dheeraj.pdheeraj8964
    @dheeraj.pdheeraj8964 2 роки тому

    Thank you sir

  • @kingswag177
    @kingswag177 2 роки тому

    Which ide you bro ?

  • @basirsaboor2367
    @basirsaboor2367 2 роки тому

    can any please tell me how is to run the files in the terminal coz I can't

  • @denethnanayakkara6-f26
    @denethnanayakkara6-f26 3 роки тому

    can you make a vidio about how to make a working button in programiz

  • @yorgundemokrat4615
    @yorgundemokrat4615 3 роки тому

    thx man you are the best

  • @TauriMarie
    @TauriMarie 3 роки тому

    Thank you very much ~!

  • @rafy-ivanmorales3077
    @rafy-ivanmorales3077 2 роки тому

    I’m a new student and need help to do this project:
    I have a port scanner script it works properly, it works in Pycharm using python3.9.
    I have to make a file and I call this file (Example.txt).
    On this example file, I have to do this:
    3. If the Ports is open, it should create a file and add an entry for port number
    4. In case of any exception for instance “host is not available”, “host name could not be resolved” or
    due to any other error, you need to write that exception into the same file.
    I’m not asking for you to do the project for me, I'm only asking ware I need to work or used in my script to accomplish this because it is my first time doing this and working with python too, and I have been struggling with this part one very bad. I can even send you the code, so you can look and only tell me what I’m doing bad and is not working.
    Or try to make one day a video about this because I have search for this subject and I have not seen anything showing how to do these things in a script.

  • @ahmedyousif4782
    @ahmedyousif4782 3 роки тому +1

    FileNotFoundError: [Errno 2] No such file or directory

    • @programizstudios
      @programizstudios  3 роки тому +1

      This exception is shown in the file you are trying to access doesn't exist.
      P.S. Our Python online interpreter doesn't have the capability to handle files at the moment.

  • @vigneshwaranprakasham9619
    @vigneshwaranprakasham9619 3 роки тому

    Bro your programiz website not opening.. Please help me
    I'm learn python past one month in your website. These two days not opening.. What can I do..

  • @vinayaksharma-ys3ip
    @vinayaksharma-ys3ip 3 роки тому

    💯💯

  • @gerben4436
    @gerben4436 2 роки тому

    i low amerika i lov pakistan pakistan number one !!