Python is often conflated with text-based automation. Things like batch-processing of CSV files, JSON, and web-based stuff.
Really, though, it is a Swiss army knife of utility.
Even though it is interpreted, our desktop super computers are plenty beefy enough for Python to scream through tough tasks, and also the ease of use makes it useful for simple things too.
As an example, I needed to convert some binary files into Base64 encoded ascii for the web.
Of course the first thing I tried was a web search for an online tool, and those exist, but the format wasn't good, and worse I would have to manually use the tool slowly file by file.
Python to the rescue.
Here's the script in selectable text that I wrote by copypasta Google searches - enjoy!
import sys data = open(sys.argv, "rb").read() encoded = base64.b64encode(data) print("Writing") f = open(sys.argv, 'w+b') byte_arr = encoded binary_format = bytearray(byte_arr) f.write(binary_format) f.close()```