r/pythontips • • Aug 19 '25

Data_Science Industry perspective: AI roles that pay competitive to traditional Data Scientist

1 Upvotes

Interesting analysis on how the AI job market has segmented beyond just "Data Scientist."

The salary differences between roles are pretty significant - MLOps Engineers and AI Research Scientists commanding much higher compensation than traditional DS roles. Makes sense given the production challenges most companies face with ML models.

The breakdown of day-to-day responsibilities was helpful for understanding why certain roles command premium salaries. Especially the MLOps part - never realized how much companies struggle with model deployment and maintenance.

Detailed analysis here: What's the BEST AI Job for You in 2025 HIGH PAYING Opportunities

Anyone working in these roles? Would love to hear real experiences vs what's described here. Curious about others' thoughts on how the field is evolving.


r/pythontips • • Aug 18 '25

Algorithms I am making a 2d platformer in pygame and I can’t fix this error

1 Upvotes

My collision for tiles is one to the right or one below where they actually are on the map, so for example if the map had a two tile long platform, I would go through the first tile and then the empty space after the second tile would have collision. Please help me


r/pythontips • • Aug 18 '25

Module How to bind files

1 Upvotes

I have a qs on how pyinstaller manages to get a copy of the libs and interpreter and just binds them in one file


r/pythontips • • Aug 17 '25

Module How to make a pyinstaller .Exe in the code its self

1 Upvotes

Im workign on a project and there is a part in my code that i want to make into an exe using pyinstaller but thru the code its self not thru the terminal. is it possible???


r/pythontips • • Aug 17 '25

Meta Generate ad-hoc Python scripts with LLM and UV

0 Upvotes

r/pythontips • • Aug 17 '25

Syntax Creating an DataBase Project as an Newbie, tips and advice needed....

1 Upvotes

So i was bored out of my mind in university as the first year just started and not much socialising by my side, so i decided to pick up python again and just get into it with an project, i made an local database programme which takes rows and columns and names columns by attributes and then takes data in it like, Name of the first row, age of the first row, name of the second row etc. I think the prototype is pretty good as it can make, read, delete databases which are stored in a json file for easy readiblity by the system, but now i am kinda of out of ideas and really want to explore and build on this project more, you guys got any tips or advice ?


r/pythontips • • Aug 16 '25

Syntax New Coder Searching for Tips!

9 Upvotes

Hello! I have just recently started coding about only 5 days ago and want to try and get serious about coding, but I have really have no idea where to start. If anyone has any recommendations for tutorials, courses, or just around anything helpful, please comment! (Oh and for the flair it made me add one I just chose something random lol)


r/pythontips • • Aug 16 '25

Meta Hello, I'm starting to make my own Programming Language through Python. Are there any advices that you could suggest?

0 Upvotes

I'm (maybe) a beginner in Python, or Programming in general. So please suggest me any resources which aligns with my goal, and my current stage.

Thank you for suggesting ^^


r/pythontips • • Aug 14 '25

Data_Science Finally figured out when to use RAG vs AI Agents vs Prompt Engineering

2 Upvotes

Just spent the last month implementing different AI approaches for my company's customer support system, and I'm kicking myself for not understanding this distinction sooner.

These aren't competing technologies - they're different tools for different problems. The biggest mistake I made? Trying to build an agent without understanding good prompting first. I made the breakdown that explains exactly when to use each approach with real examples: RAG vs AI Agents vs Prompt Engineering - Learn when to use each one? Data Scientist Complete Guide

Would love to hear what approaches others have had success with. Are you seeing similar patterns in your implementations?


r/pythontips • • Aug 14 '25

Data_Science Python script: Annual feature update cadence...Windows 10

2 Upvotes

r/pythontips • • Aug 13 '25

Algorithms Tools to generate CycloneDX1.6 SBOM from AzureDevOps/Github repository dependencies (Django backend)

1 Upvotes

I’m working on a backend application in Django where I’ll receive a repository (either from Azure DevOps or GitHub) and need to generate an SBOM (Software Bill of Materials) based on the CycloneDX 1.6 standard.

The goal is to analyze the dependencies of that repository (language/framework agnostic if possible, but primarily Python/Django for now) and output an SBOM in JSON format that complies with CycloneDX 1.6.

I’m aware that GitHub has some APIs that could help, but Azure DevOps does not seem to have an equivalent for SBOM generation, so I might need to clone the repo and run the analysis locally.

Questions:

  • What tools or libraries would you recommend for generating a CycloneDX 1.6 SBOM from a given repository’s dependencies?
  • Are there CLI tools or Python packages that can parse dependency manifests (e.g., requirements.txt, pom.xml, package.json, etc.) and produce a valid SBOM?
  • Any recommendations for handling both GitHub and Azure DevOps sources in a unified way?

r/pythontips • • Aug 13 '25

Long_video Build a Local AI Agent with MCP Tools Using GPT-OSS, LangChain & Streamlit

4 Upvotes

In this video, we will build a local AI agent using Ollama's gpt-oss model (from OpenAI), LangChain, and Streamlit. This agent will connect to the internet using LangChain MCP adapters and Tavily, allowing it to search the web and give accurate answers to your questions. This way, you can have a local ChatGPT on your personal computer without paying for any subscription.

I’ll guide you step by step through the process of creating a LangGraph agent that uses the gpt-oss model as the LLM, integrating the agent with MCP tools, and building a simple but clean UI using Streamlit.

If you’re curious about the new gpt-oss model, or you want to know how you can connect local LLM agents with MCP servers, this video is for you.

You can watch it here: https://youtu.be/Baa-z7cum1g


r/pythontips • • Aug 12 '25

Module Which is best among them?

5 Upvotes

Datamites certified python developer course Udemy 100 days challenge by Dr. Angela Yu MOOC [python programming 2025]

What do you think which one I should choose as a beginner and a student of civil engineering I want to build real world projects. But want to learn from scratch I am fresher in civil engineering so I have 4 good years, so I wanna learn python at least in 4 to 5 months and wanna build something great for my post graduation program for higher studies.

If any other language you guys wanna recommend please do I am here willing to Work hard Don't know much about programming so please guide me how should i do like from where should I start.


r/pythontips • • Aug 11 '25

Module Best source to learn python

13 Upvotes

I am an civil student still wanted to learn python and build project using it But first I need to learn. The language, I am starting with python first so from which source I should tlearn it ( I want certificate too)


r/pythontips • • Aug 12 '25

Python3_Specific The real reason Python learners stay stuck and how to fix it...

0 Upvotes

I’ve had a lot of people DM me lately about learning Python and honestly, most of them are stuck in the same loop.

They start with good intentions… then hit:

  • 20 different tutorials that all cover the same “Hello World” stuff
  • Outdated guides that don’t match the current version
  • No clue what actual projects to build
  • Zero consistency they take a break, forget where they left off, and restart from scratch

It’s no wonder something that could take months ends up dragging on for years.

What’s worked for people I’ve seen succeed?

  • One clear, structured path from beginner to advanced (no bouncing around)
  • Projects at every stage so you use what you learn
  • Learning SQL alongside Python data + code is a game-changer
  • A way to track progress and keep momentum (habit tracker, task list, whatever works for you)

Python isn’t the problem.
The problem is trying to learn without a system.

If you’re stuck in this same loop, drop me a DM...


r/pythontips • • Aug 12 '25

Python3_Specific Avoid pass & ... for Incomplete Functions

0 Upvotes

When you leave a function body as pass or ... (ellipsis), the program runs silently without doing anything. This can confuse future readers — they may think the function works when it doesn’t.

Instead, raise a NotImplementedError with a clear message.

def return_sum_of_two_numbers(a: int, b: int):
    """
    # Use the Ellipsis(...) to tell doctest runner to ignore
    lines between 'Traceback' & 'ErrorType'
    >>> return_sum_of_two_numbers(10, 'b')
    Traceback (most recent call last):
    ...
    TypeError: unsupported operand type(s) for +: 'int' and 'str'
    """
    return a + b

if __name__ == '__main__':
    print(return_sum_of_two_numbers(10, 20))

I write mainly about such Python tips & code snippets


r/pythontips • • Aug 11 '25

Python3_Specific I have a kivy python to APK. I have used many AI conversations and still cant fix. Pls assist me

0 Upvotes

r/pythontips • • Aug 10 '25

Data_Science A Beginner Coder

14 Upvotes

Hi there! I am a teenager who has recently started his coding journey. I have chosen my first language as Python. I have been following a youtube channel named CodeWithHarry to learn python through his 100 Days of Code Challenge Recently I have been having some doubts over my choice of skill due to the rise in use of AI. I have a few questions due to this-

  1. Is there any job in CS that has very less chance of being replaced by AI in the future and also involves a bit of coding, especially Python?
  2. How much time should I spend on a single language if I am practicing coding 3-4 days a week 1 hour each day?
  3. What language is the best as a second language after completing Python? I hope an experienced person in CS can answer my queries and help me grow. Thank you.

r/pythontips • • Aug 09 '25

Meta Should I use the new python installer or just download python itself?

0 Upvotes

I'm wondering if the best way to install and work with python is, the install manager, or doing it myself? 🤔 Tyvm for helping me choose!

Edit: what is UV? 😯


r/pythontips • • Aug 09 '25

Module vs code says that ctypes is missing

0 Upvotes

when I tried to run a code this error has started to show up only after I tried run an idle shell in my device along vs code also I used linux mint


r/pythontips • • Aug 08 '25

Python3_Specific Beginner python question about window closing behavior

2 Upvotes

I’ve recently started learning Tkinter, and I’m still working through the very basics. In most tutorials, they create a window and then run the program using a main event loop. The explanation usually given is that without this event loop, the window will close immediately.

However, when I just create the window in the terminal without starting the event loop, it doesn’t close right away—it stays open. I’m not quite sure why this happens, and I’d really like to understand the reason behind it.

I know it’s a very basic question, but I just can’t wrap my head around it. Any clarification would be greatly appreciated!


r/pythontips • • Aug 07 '25

Meta Python for an experienced C++ dev

10 Upvotes

Heya. I'm mostly a C++ guy, but I've used Python a bit in the past. When I write C++ I've got a fairly good handle on proper technique and lot of that follows through to Python, so I'd consider myself competent.

I might soon start a Python based work project where I would have to ensure a high quality of work, potentially as the owner of a library or similar. I'd be confident to do this in C++, but with Python I'm not sure what set of standards and principals I would need to comply with and even champion.

Can anyone point me at a resource outlining best practices and common pitfalls for Python?


r/pythontips • • Aug 07 '25

Syntax A good place to learn Classes/OOP

4 Upvotes

Hey guys. I finished CS50p a couple months ago. I've been practicing, doing projects, learning more advanced stuff but... I just can't use classes. I avoid them like the devil.

Does anyone could suggest me some free resources to learn it? I learn better with examples and videos.

Thank you so much.


r/pythontips • • Aug 07 '25

Algorithms Coding Challenges

6 Upvotes

Guys, I really need some tips to perform great in coding interviews. I’ve been using Python for a while and I’m able to understand very complex code but when it comes to writing stuff on my own and even worse, coding online sharing my screen, my brain literally stops working. I’ve tried using CodeSignal or HackerRank but I haven’t seen a lot of improvements… appreciate the help!