Why Alot of people use to python code?

Why Alot of people use to python code?

Python has gained popularity mostly due to three factors: 1) It is easy to learn; 2) It is very powerful; and, 3) It is supported by a wide range of special purpose libraries. We could go on to explore more reasons, and others may chip in theirs. The above three are a compelling reason, in themselves.

3 Likes

Agree with all the above provided points by mtf, and also wanted to add my experience with Python. It’s very quick to jump in and write a Python script to carry out a task and requires no set-up outside of just writing the script itself. As a result I use it a lot for regular automated tasks that just make my life a little easier.

For example, I use a site called Patreon, which is essentially a site for supporting artists and getting perks from it. I support several musicians who upload exclusive songs, and downloading these songs then adding appropriate metadata using the web UI is tiresome, it can usually take up to 15 minutes per song.
So I quickly put together a Python script in about half an hour that queries Patreon, downloads the song and automatically applies the relevant metadata. All in I’ve probably spent 1 hour total writing, testing and then improving the script, and it’s easily saved me hours as I’ve been using it for a couple years now. There’s not many other programming languages that make it so quick to set-up some functional code like this.

There are many other reasons Python is so popular, but the ease and speed of setting up scripts is a big one for me.

4 Likes