r/learnpython 3d ago

Seeking help with building logic while learning Python programming

I'm a DevOps engineer with 2 years of experience, and I come from a commerce educational background.

I've tried learning Python several times in the past, mainly when I was switching jobs and preparing for interviews. However, I ended up joining companies where Python wasn't really required or where nobody was particularly concerned about my Python skills.

Currently, I use AI to generate scripts for many of my daily DevOps tasks. My biggest concern is that I'm not able to build the logic myself or write the syntax from scratch. I often struggle with knowing when to use what.

The last time I seriously learned Python, I got up to lambda functions. That was about a year ago, and now I've completely forgotten a lot of the basics, including data types and syntax.

I want to properly learn Python because it's one of the most commonly mentioned skills in the DevOps/SRE job descriptions I see, especially for bigger tech companies. I've also lost a few interviews in the past because of my lack of Python knowledge.:

I'd really appreciate advice from people who have been through a similar situation. What worked for you?

21 Upvotes

10 comments sorted by

View all comments

1

u/Jitsisadumbword 20h ago

So…. If you’re calling yourself a DevOps Engineer without knowing Python, I can only assume “Commerce Educational background” means either educating guests which menu items are vegan or contain peanuts, or you subscribe to some TikTok funnel system but have no customers or product.

I’m sure you’re probably thinking you’re going to create a “learn Python the easy way” product as soon as you learn it first…

Does your codebase look like:

name = “JackSparrow”
title = “DevOps Engineer”

print(f”I’m {name}, and I’m a {title}!”)

Python is dog-shit simple compared to anything else in a dev stack.
Don’t come in here jerking yourself off with a question like that. 🤦🏻‍♂️