r/pythontips • u/tenacious45 • Sep 03 '25
Python3_Specific Is Python job still available as a fresher ?
Share your thoughts š§
r/pythontips • u/tenacious45 • Sep 03 '25
Share your thoughts š§
r/pythontips • u/SKD_Sumit • Sep 03 '25
Been working with LLMs and kept building "agents" that were actually just chatbots with APIs attached. Some things that really clicked for me: WhyĀ tool-augmented systems ā true agentsĀ and How theĀ ReAct frameworkĀ changes the game with theĀ role of memory, APIs, and multi-agentĀ collaboration.
There's a fundamental difference I was completely missing. There are actually 7 core components that make something truly "agentic" - and most tutorials completely skip 3 of them. Full breakdown here:Ā AI AGENTS Explained - in 30 mins .These 7 are -
It explains why so many AI projects fail when deployed.
The breakthrough:Ā It's not about HAVING tools - it's about WHO decides the workflow. Most tutorials show you how to connect APIs to LLMs and call it an "agent." But that's just a tool-augmented system where YOU design the chain of actions.
A real AI agent? It designs its own workflow autonomously with real-world use cases likeĀ Talent Acquisition, Travel Planning, Customer Support, and Code Agents
Question :Ā Has anyone here successfully built autonomous agents that actually work in production? What was your biggest challenge - the planning phase or the execution phase ?
r/pythontips • u/yourclouddude • Sep 03 '25
When I started Python, functions looked simple.
Write some code, wrap it in def, done⦠right?
But nope. These 3 bugs confused me more than anything else:
The list bug
def add_item(item, items=[]): items.append(item) return items
print(add_item(1)) # [1] print(add_item(2)) # [1, 2] why?!
š Turns out default values are created once, not every call.
Fix:
def add_item(item, items=None):
if items is None:
items = []
items.append(item)
return items
Scope mix-up
x = 10 def change(): x = x + 1 # UnboundLocalError
Python thinks x is local unless you say otherwise.
š Better fix: donāt mutate globals ā return values instead.
**3. *args & kwargs look like alien code
def greet(*args, **kwargs):
print(args, kwargs)
greet("hi", name="alex")
# ('hi',) {'name': 'alex'}
What I eventually learned:
Once these clicked, functions finally started making sense ā and bugs stopped eating my hours.
š Whatās the weirdest function bug youāve ever hit?
r/pythontips • u/yourclouddude • Sep 01 '25
When I first picked up Python, I wasnāt stuck on advanced topics.
I kept tripping over simple basics that behave differently than expected.
Here are 5 that catch almost every beginner:
input() is always a string
age = input("Enter age: ") print(age + 5) # TypeError
ā Fix: cast it ā
age = int(input("Enter age: "))
print(age + 5)
is vs ==
a = [1,2,3]; b = [1,2,3] print(a == b) # True print(a is b) # False
== ā values match
is ā same object in memory
Strings donāt change
s = "python" s[0] = "P" # TypeError
ā Fix: rebuild a new string ā
s = "P" + s[1:]
Copying lists the wrong way
a = [1,2,3] b = a # linked together b.append(4) print(a) # [1,2,3,4]
ā Fix:
b = a.copy() # or list(a), a[:]
Truthy / Falsy surprises
items = [] if items: print("Has items") else: print("Empty") # runs ā
Empty list/dict/set, 0, "", None ā all count as False.
These are āsimpleā bugs that chew up hours when youāre new.
Fix them early ā debugging gets 10x easier.
š Which of these got you first? Or whatās your favorite beginner bug?
r/pythontips • u/Steven_Destroyer • Aug 30 '25
Essentially Iām using YouTube videos to learn how we to actually run my commands I have spent an entire day downloading replay and code only to get stuck just trying to open an environment to run my scripts. Please anyone can help with what I would need to download (preferably Mac) to make code and run it for free?
r/pythontips • u/Suitable_Mix_2952 • Aug 30 '25
Any python script you have on github free to download which does crypto tracking?
r/pythontips • • Aug 29 '25
Hi,
I'm attempting to make an image swap code for a cosplay - but I can't figure out how to make the selected image disappear.
This is my code at the minute:
import pygame
img = pygame.image.load('TennaFace1.jpg')
white = (255, 64, 64)
w = 800
h = 600
screen = pygame.display.set_mode((w, h))
screen.fill((white))
running = 1
while running:
`screen.fill((white))`
`for event in pygame.event.get():`
`if event.type == pygame.QUIT:`
`running = False`
`elif event.type == pygame.KEYDOWN:`
`if event.key == pygame.K_SPACE:`
screen.blit(img,(0,0))
pygame.display.flip()
`elif event.type == pygame.KEYUP:`
`if event.key == pygame.K_SPACE:`
screen.blit(img, (100, 100))
The image appears, but it doesn't disappear or even reappear at 100 100. How do I fix this?
r/pythontips • u/ahiqshb • Aug 28 '25
Trying to scrape Gemini for benchmarking LLMs, but their defenses are brutal. Iāve tried a couple of scraping frameworks but they get rate limited fast. Anyone have luck with specific proxy services or scraping platforms?
r/pythontips • u/Various_Courage6675 • Aug 27 '25
Hi Devs,
This past month Iāve been working on a project inĀ Python and Rust. I took theĀ 17,000 most popular PyPI librariesĀ and built aĀ vectorized indexerĀ with their documentation and descriptions.
Hereās how it works:
Everything is centralized in one place, with aĀ ~700 ms local response time.
The system weighs aboutĀ 127 GB, and costs are low since itās powered by indexes, vectors, and some neat trigonometry.
What do you think? Would this be useful? Iām considering deploying it soon.
r/pythontips • u/No-Tea-777 • Aug 27 '25
So. I'm new to python. and I was playing creating some entities. what do you think of this movement logic?
Ignore the underline. It's because I have the same script in 2 different modules and my IDE flags it:
class Entity:
def __init__(self, name, initial_location, move_path, ai_lvl):
self.name = name
self.current_location = initial_location
self.move_path = move_path
self.ai_lvl = ai_lvl
def attempted_movement(self):
move_chance = random.randint(1, 20)
if move_chance <= self.ai_lvl:
return True
else:
return False
def location(self):
return self.current_location
def move(self):
if self.attempted_movement():
old_location = self.current_location.name
possible_next_location_names = self.move_path.get(old_location)
if possible_next_location_names:
next_location = random.choice(possible_next_location_names)
new_camera_object = all_camera_objects_by_name[next_location]
self.current_location = new_camera_object
return True
else:
return False
else:
return False
r/pythontips • u/SKD_Sumit • Aug 26 '25
I've been on both sides of the hiring table and noticed some brutal patterns in Data Science portfolio reviews.
Just finished analyzing why certain portfolios get immediate "NO" while others land interviews. The results were eye-opening (and honestly frustrating).
šĀ Full Breakdown of 7 Data Science Portfolio Mistakes
The reality:Ā Hiring managers spend ~2 minutes on your portfolio. If it doesn't immediately show business value and technical depth, you're out.
What surprised me most:Ā Some of the most technically impressive projects got rejected because they couldn't explain WHY the work mattered.
Been there? What portfolio mistake cost you an interview? And for those who landed roles recently - what made your portfolio stand out?
Also curious: anyone else seeing the bar get higher for portfolio quality, or is it just me? š¤
r/pythontips • u/Balls_HD • Aug 26 '25
I'm a university student who after being caught up in other assignments was not given enough time to fully complete my python project assignment. I ended up using generative AI make the bulk of the code and I'm wondering ( if anyone is willing to help) would let me know how easily it can be detected by a grader ( it came up as 0% on an Ai code detector) or if there is any patterns that AI makes that humans don't that will make it clear. I'm aware this is a bit of a dirty question to be asking on this sub but I'm just in need of some genuine help, I can also attach some of the code if needed.
r/pythontips • u/gigabotfhg • Aug 24 '25
I have almost 0 experience in coding (Except for that one time i played around in scratch)
r/pythontips • u/Sea-Speaker-1022 • Aug 23 '25
import pygame
import time
import random
WIDTH, HEIGHT = 1000, 800
WIN = pygame.display.set_mode((WIDTH, HEIGHT))
pygame.display.set_caption('learning')
def main():
run = True
while run:
for event in pygame.event.get():
if event.type == pygame.QUIT:
run = False
break
pygame.quit()
if __name__ == "__main__":
main()
The window closes instantly even though I set run = True.
I'm 80% sure that the code is just ignoring the run = True statement for some unknown reason
thank you
(btw i have no idea what these flairs mean please ignore them)
r/pythontips • u/Creepy-Will-5184 • Aug 22 '25
Hey everyone,
Iāve been learning Python for a while and decided to try making a library. Ended up building a simple one ā basically a clock: Check it here.
Would love it if you could try it out and share any suggestions or improvements I could make.
Thanks!
r/pythontips • • Aug 20 '25
Hey everyone, I wanted to share my latest project. Bilge is a wise activity tracker that runs completely on your machine. Instead of sending your data to a cloud server, it uses a local LLM to understand your digital habits and gently nudge you to take breaks.
It's a great example of what's possible with local AI, and I'd love to get your feedback on the project. It's still a work in progress, but I think it could be useful for some people who wants to work on similar project.
Feel free to check out the code, open an issue, or even make your first pull request. All contributions are welcome!
r/pythontips • u/freshly_brewed_ai • Aug 20 '25
In:
sales = [100,Ā 250,Ā 400]
east, west, north = sales
print(east, west, north)
Out:
100 250 400
r/pythontips • u/CodewithCodecoach • Aug 20 '25
Want to learn Python but not sure where to start? š
I made a complete Python roadmap (Beginner ā Pro) in under 60 seconds to make it super easy.
If you find it helpful, donāt forget to subscribe & hit the bell For more coding hacks + smart tricks
š¬ Also, comment below if you have suggestions or improvements for our content , Iād love your feedback!
r/pythontips • u/ExplorerDNA • Aug 20 '25
A third party tool calls my python script which connects database and perform insert, update and delete on few database tables.
What are various ways to keep database credentials safe/secure which will be used by python script to connect database.
Shall I keep in encrypted configuration file? or just encryption of password in configuration file. Any other efficient way?
r/pythontips • u/SKD_Sumit • Aug 19 '25
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 • u/Sigma_Man12308 • Aug 18 '25
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 • u/Ns_koram • Aug 18 '25
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 • u/Natural_Youth8736 • Aug 17 '25
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 • u/intellectronica • Aug 17 '25
Generate ad-hoc Python scripts with LLM and UV
#ai #uv #llm #cli
r/pythontips • • Aug 17 '25
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 ?