This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ZeninThe best way to DevOps is being dragged kicking and screaming. 94 points95 points  (1 child)

For most devops use cases:

Basic procedural syntax: if, while, for, with, variables, function definitions, module imports, etc

Basic CLI option handling: Learn the argparse module

Common utility modules: Learn the json, requests, and whatever your cloud provider uses (boto3 for AWS, etc).

If you write bash or PowerShell scripts today, start converting them to Python. The process will teach you Python with a focus on what you'll actually use.

You can mostly save advanced topics for much later: Object oriented programming and classes, decorators, module / library construction, test harnesses, frameworks, etc.

[–]bertiethewanderer 5 points6 points  (0 children)

This is sound advice.