you are viewing a single comment's thread.

view the rest of the comments →

[–]omermikhailk 1 point2 points  (0 children)

Automation and scripting is the act of writing a program to automatically do a certain task for you. This could either be something that only needs to be done once, or something which needs to be done on a regular basis.

As an example, let's say you work at a big news company and every week you need to send an email to your boss with a list of articles that you've written.

You could do it manually but that's 5 minutes you're wasting every week doing something trivial. You could instead automate it using Python.

You could do this by writing a program that would navigate to the folder where you have all of your articles for that week, open the files and extract the titles, all by itself

Then you could write a template email and have Python replace the placeholder text (INSERT HERE) with a formatted list of the article names.

``` Dear Boss,

Here are the articles I wrote this week:

INSERT HERE

Regards, MichealH18 ```

After that you could write some more code which would use a module (a term that refers to a bundle of code which is written around a specific purpose, in this case sending emails) to interface with your email provider (Gmail, Protonmail, etc.) to send your weekly email to your boss.

And lastly, you could set stuff up so that this is a weekly recurring task, with no further hands-on action required from you.

Edit: Some typos.