Writing to Files | Python | Tutorial 29

Поділитися
Вставка
  • Опубліковано 27 сер 2024
  • Source Code - www.giraffeacad... This video is one in a series of videos where we'll be looking at programming in python. The course is designed for new programmers, and will introduce common programming topics using the python language.
    Throughout the course we'll be looking at various topics including variables, lists, tuples, loops, conditionals, object orientation, and much more.

КОМЕНТАРІ • 28

  • @nitinteja1580
    @nitinteja1580 3 роки тому +6

    I can see that you are a fan of "The Office" 😂😂 . Your tutorials have been extremely helpful. Keep up the great work.

  • @alexmote6779
    @alexmote6779 5 років тому +10

    Love this content Mike! Better than most of the paid courses on the internet! You’re the best!

  • @danieltadessechaka3202
    @danieltadessechaka3202 3 роки тому +3

    thank you guys ,you are really helping us a lot please keep it up ,your lecture is a lot to us specially in my area of east africa, you are helping a lot of computer science students ,your lecture is awesome,once again thank you guys.

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

    Awesome video! It saves my awful python class at college

  • @chickennuggets9993
    @chickennuggets9993 4 роки тому +4

    I’m so glad he added toby

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

    114k on first video of this playlist, 11k on this one. Less than 10% made it here. Congrats

  • @d.howardcolesjr4862
    @d.howardcolesjr4862 5 років тому +2

    What about "r+" How would you handle adding new lines, removing lines, etc.?

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

    sweet thanks, used this to ping every ipv4 addres and write the ones that are up to a file.

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

    Hey how do we select relevant results of the username from a file? Results of different school projects

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

    how can we add new atom coordinates into a .pdb file using python?

  • @mr.b8ter
    @mr.b8ter 5 років тому +1

    Hello, how can I add user input in 'employee_file.write' ?

    • @sircorndog9647
      @sircorndog9647 4 роки тому +4

      all you have to do is write:
      employee_file.write(input( ))

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

    this site is awesome

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

    Hi! How would you append a certain text to ALL the files in a folder instead of to a single file? Thank you!

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

    Great content Mike. You are the best

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

    Please how do I perform this task in Jupyter Notebook?

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

    what if we have to add values to file?

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

    top stuff brother

  • @guruaswinm7058
    @guruaswinm7058 4 роки тому

    Bro i wish u would reach more than 5 million sub

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

    Thank you! :D

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

    very cooolllll

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

    thank you soooo 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.

  • @HIDlarissaTERRY
    @HIDlarissaTERRY 4 роки тому

    Wow wow wow

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

    thank you i could kiss you im gonna pass my module

  • @mitchellfolbe8729
    @mitchellfolbe8729 5 років тому +1

    You started the previous tutorial with a txt file, but you didn't show how to put it in. Then you ended this tutorial showing how to make a file. It seems more helpful to have the end of this tutorial at the beginning of the previous tutorial.

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

      He's got an entire video showing us how to create that previous file. Check Lesson 28 if his Python | Playlist