Text Files in Python || Python Tutorial || Learn Python Programming

///Text Files in Python || Python Tutorial || Learn Python Programming

Text Files in Python || Python Tutorial || Learn Python Programming

FavoriteLoadingAdd to favorites

Reading and writing text files is an essential programming skill. Python gives you a simple and powerful tool for working with text files: the open function. This lets you open a wide variety of files – both text or binary – in many different modes (read, write and append). Today we will show you how to read and write text files, and show you several ways to accomplish each task.

We’d like to recognize our VIP Patrons who sponsored this video on Patreon! Our sincere thanks to Birds Eat Bees, Andrew Mengede, Markie Waid, and Carlos Araujo. Your generous donation helps make these videos happen!

➢➢➢➢➢➢➢➢➢➢
To learn Python, you can watch our playlist from the beginning:

➢➢➢➢➢➢➢➢➢➢
To​ ​help​ ​us​ continue making videos,​ ​you​ ​can​ ​support​ Socratica at:

​Patreon​:

Socratica Paypal:

We also accept Bitcoin! 🙂
Our​ ​address​ ​is: 1EttYyGwJmpy9bLY2UcmEqMJuBfaZ1HdG9

Thank​ ​you!!

➢➢➢➢➢➢➢➢➢➢
If you’d like a reference book, we recommend “Python Cookbook, 3rd Edition” from O’Reilly:

The Mythical Man Month – Essays on Software Engineering & Project Management

➢➢➢➢➢➢➢➢➢➢
You​ ​can​ ​also​ ​follow​ ​Socratica​ ​on:
-​ ​Twitter:​ ​@socratica
-​ ​Instagram:​ ​@SocraticaStudios
-​ ​Facebook:​ ​@SocraticaStudios

➢➢➢➢➢➢➢➢➢➢
Python instructor: Ulka Simone Mohanty (@ulkam on Twitter)
Written & Produced by Michael Harrison (@mlh496 on Twitter)

source

By |2019-07-31T21:36:48+00:00July 31st, 2019|Python Video Tutorials|32 Comments

32 Comments

  1. Isuru Abeykoon July 31, 2019 at 9:36 pm - Reply

    I watched it and liked it even without knowing what is Python!

  2. Don Surlylyte July 31, 2019 at 9:36 pm - Reply

    nice snap

  3. Sam Token July 31, 2019 at 9:36 pm - Reply

    has been watching few of the videos, the production quality is exceptional. right to the point. Thank you very much. And sure, subscribed.

  4. BlackMasterGoku360XD July 31, 2019 at 9:36 pm - Reply

    with open("Ocean_man.txt", "w") as f:
    print("Ocean Man / Weenn", file=f)
    for i in range (0, 2):
    print("""Ocean man, take me by the hand, lead me to the land that you understand
    Ocean man, the voyage to the corner of the globe is a real trip
    Ocean man, the crust of a tan man imbibed by the sand
    Soaking up the thirst of the land
    Ocean man, can you see through the wonder of amazement at the oberman
    Ocean man, the crust is elusive when it casts forth to the childlike man
    Ocean man, the sequence of a life form braised in the sand
    Soaking up the thirst of the land
    Ocean man, ocean man
    Ocean man
    """, file=f)

  5. ANDRÉS SÁNCHEZ July 31, 2019 at 9:36 pm - Reply

    its such a simple and elegant way to explain and yet they manage to include a sense of humor. Congratz with this videos, i love them

  6. Xinglan Tan July 31, 2019 at 9:36 pm - Reply

    Can't stop watching and can't stop learning from the amazing tutor of the universe. My human hats off.

  7. Azazel July 31, 2019 at 9:36 pm - Reply

    Why the hell do all coders prefer Linux over windows ? Just why ?

  8. Nureyn A July 31, 2019 at 9:36 pm - Reply

    Why I have not seen you before? Thanks for this amazing video. thumbs up

  9. Sushil Sekhar Satapathy July 31, 2019 at 9:36 pm - Reply

    Am I the only one who opened this video just looking at the girl?😂

  10. Kevin Walker July 31, 2019 at 9:36 pm - Reply

    If I ever own a computer that talks, I would like the gorgeous Ulka Simone Mohanty to provide the voice 😉

  11. Atul Gupta July 31, 2019 at 9:36 pm - Reply

    Love from India

  12. anythingbutcash July 31, 2019 at 9:36 pm - Reply

    this helped me…thank you

  13. Juxarius July 31, 2019 at 9:36 pm - Reply

    Awesome series, but you missed out + and x mode. Especially + when making databases and partitioning blocks is required

  14. Joalbert Palacios July 31, 2019 at 9:36 pm - Reply

    They are quite engaging vids, congratulation!!

  15. Arif Ali July 31, 2019 at 9:36 pm - Reply

    I am afraid. Its been like we are learning python in a spaceship 😛

  16. Gabriel Gomes July 31, 2019 at 9:36 pm - Reply

    thanks socratica, it helped me so much

  17. Steve Bale July 31, 2019 at 9:36 pm - Reply

    Brilliant video, even a doofus like me can understand it.

  18. Vishal Maurya July 31, 2019 at 9:36 pm - Reply

    Thanks for this amazing video. but i want to know how to read more than one file from a folder.

  19. Lars L. Christensen July 31, 2019 at 9:36 pm - Reply

    This is so good

  20. Youngermaster July 31, 2019 at 9:36 pm - Reply

    Excelente video

  21. Vik De Leon July 31, 2019 at 9:36 pm - Reply

    in file

  22. Otonium July 31, 2019 at 9:36 pm - Reply

    Thanks!

  23. Jason Todd July 31, 2019 at 9:36 pm - Reply

    So why do you need to close() the file before printing it?

  24. kitty July 31, 2019 at 9:36 pm - Reply

    Instant regret for choosing computer science

  25. Leonardo Hernandez July 31, 2019 at 9:36 pm - Reply

    Woah, first time here but let me say, what the hell… amazing

  26. Madelline Abrego July 31, 2019 at 9:36 pm - Reply

    🙂

  27. gazi helal July 31, 2019 at 9:36 pm - Reply

    Bravo! Your tutorials are great!

  28. laxman banoth July 31, 2019 at 9:36 pm - Reply

    time order in text summary python program

  29. Rouge Stream July 31, 2019 at 9:36 pm - Reply

    Thanks so much

  30. Avenged Prophet July 31, 2019 at 9:36 pm - Reply

    I have an exam about python in 3 weeks. Although it‘s a bit late for finding this channel I‘m sure that this will help me

  31. Pawan Kumar July 31, 2019 at 9:36 pm - Reply

    After watching this video i suggest a new name sarcatica

  32. keers raj July 31, 2019 at 9:36 pm - Reply

    can anyone suggest me how to read an xml file in python

Leave A Comment

*