Python Read Data From Text File (2 Ways)

Опубликовано: 13 Октябрь 2024
на канале: Surfing Scratcher
7,662
30

I'll show you two ways to read lines of data from a text file in Python. This video is part of a beginner python coding series.

➡️ PATREON:   / surfingscratcher  
➡️ MAILING LIST: http://surfingscratcher.com/recommend...
--------------------------------------------------------------------------------------------------------------------------------
🔗🔗🔗 LINKS 🔗🔗🔗

📥 Download Starter Projects:
➡️ Scratch Spelling Game: https://scratch.mit.edu/projects/5643...
➡️ Python Starter Project: https://replit.com/@surfingscratcher/...
➡️ With python syntax: https://www.pythonforbeginners.com/fi...
➡️ Zip Function: https://www.programiz.com/python-prog...

--------------------------------------------------------------------------------------------------------------------------------

🙏🙏🙏 SUPPORT 🙏🙏🙏

➡️PATREON:   / surfingscratcher  
➡️MAILING LIST: http://surfingscratcher.com/recommend...

Surfing Scratcher receives a percentage of the purchase price when you make a purchase through some of these links.
--------------------------------------------------------------------------------------------------------------------------------

🛒🛒🛒SHOP 🛒🛒🛒
Educators and teachers, you can find unplugged lessons, resources and activities to purchase for this tutorial series on my website here:

➡️Educational Resources: https://www.surfingscratcher.com/shop/
➡️Browse my Teachers Pay Teachers Store: https://bit.ly/2Tq45lH

--------------------------------------------------------------------------------------------------------------------------------

👻👻👻 SOCIAL MEDIA 👻👻👻

➡️Scratch: https://scratch.mit.edu/users/surfing...
➡️Website: https://surfingscratcher.com
➡️Like my Facebook Page: https://bit.ly/2HnR1Gg
➡️Subscribe to my YouTube Channel: https://bit.ly/2TDtqI3
➡️Follow me on Instagram: https://bit.ly/2NWlxZe
➡️Follow me on Pinterest: https://bit.ly/2CdKIl5

--------------------------------------------------------------------------------------------------------------------------------

📝📝📝 VIDEO DESCRIPTION 📝📝📝

00:00 Intro
00:55 Create Text File
01:44 Clean Text File
02:31 ReadLineFromFile
04:15 With
05:21 file.readlines()
06:32 File Console Demo
07:54 zip()
08:37 Unzip zip(*)

--------------------------------------------------------------------------------------------------------------------------------

❓🤔❓ WHAT IS SURFING SCRATCHER? ❓🤔❓

Surfing Scratcher wants to show learners, students, educators and teachers how to learn mathematics through coding games online with Scratch 3 programming projects. Whether you are a Scratch beginner, or you're an educator wondering how to use Scratch in your classroom or looking for lessons & resources for your classroom, Surfing Scratcher is here to help you on your journey.

--------------------------------------------------------------------------------------------------------------------------------

⏯ ⏯⏯PLAYLISTS ⏯ ⏯⏯
https://bit.ly/2J1q5i3

--------------------------------------------------------------------------------------------------------------------------------

#scratch #scratchtutorials #scratchtopython