Would learning Python be useful for DEVOPS?
Hell yes.
-
Python is the best language for fast scripting and automation.
-
Also it is a popular language for various automation tools (Ansible, Pulumi for example.).
-
There is a python library for just about anything you'll need in your job.
Last not least, Python is just so fun to work with
More on reddit.comWhat do YOU do with Python?
In my real world example, I wrote an irc bot that randomly farts into the channel.
More on reddit.comFor DevOps, what should you choose between Python and GoLang?
Python is object oriented; Golang is not (but mocks a lot of behaviors and some consider it to be "sorta OO").
Python syntactically is simpler to pick up; but has more complexity to managing the deployment of scripts at scale (dependency management, etc). Python tends to be easier to work with for newer programmers due to the availability of the REPL. Golang is a more verbose syntax but compiles to a single binary for distribution, I find it easier to work with for larger programs that depend on concurrency and projects with a larger scope, and python easier for quick hits. (This is all my personal opinion)
I find more teams (on average) leverage python than go, but thats because "DevOps teams" generally have less programming aptitude (this is not a dig, just a fact due to the breadth of technology). Go tends to be more used if an org is at a maturity level where its building internal tooling / platforms versus glue-scripts and still maturing automation. Note: this is a generalization at best.
Simply put: If new to programming or just looking for the biggest return on your investment: start with Python. If you have coding experience, Python is trivial to pickup so the decision is less important; you already have the core concepts down anyways. What matters is being able to look at code and understand conceptually what's happening, and to be able to dive in and write code as needed (with the help of an ample amount of documentation; you wont always get to pick the language you are thrust into supporting)
More on reddit.com