Automating with Python | Creating and classifying files

davidmm1707

David MM👨🏻‍💻

Posted on October 4, 2019

Automating with Python | Creating and classifying files

Original post Automating with Python | Creating and classifying files

Websites, Machine Learning, REST APIs… Professional Python has a lot of uses. But Python can also help us with mundane tasks, for example, automating repetitive tasks.

On the first part of the video, we are going to generate randomized students reports, containing random names, subjects, date of file creation, subjects and marks. And also how to delete only the .txt files generated to clean our folder.

On the second one, we are going to read the files, count how many failed subjects the student has, rename the file by adding it passed or failed, moving the file to a 'passed' or 'failed' folder, and then zipping both folders into .zip files

In this video you'll learn how to:

  • Create files
  • Read files
  • Delete files
  • Move files
  • Randomize the content of the files
  • Zipping folders

and more. With just using Python, no packages nor modules needed.

The lesson

You have the code on my Github account. While it is easy to learn, I recommend you to watch the video where I explain what I'm doing on each line of the code and why.

And of course, remember to subscribe!


My Youtube tutorial videos

Final code on Github

Reach to me on Twitter

More tutorials on my blog

💖 💪 🙅 🚩
davidmm1707
David MM👨🏻‍💻

Posted on October 4, 2019

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related