r/PythonLearning • • Mar 18 '26

Showcase AI agents aren't magic โ€” the core is ~60 lines of Python

58 Upvotes

I spent weeks digging into what LangChain, CrewAI, and AutoGen actually do under the hood. Turns out the core is embarrassingly simple:

- An agent is a function that POSTs to an LLM
- Tools are a dictionary lookup
- The "agent loop" is a while loop
- Memory is just injecting context into the system prompt

That's basically it. The rest is configuration and abstractions.

I turned this into a free interactive course โ€” 9 lessons, each one builds on the last. Everything runs in your browser via
Pyodide (Python compiled to WebAssembly). No install, no signup, no API key needed.

https://tinyagents.dev

It's open source too:
https://github.com/ahumblenerd/tour-of-agents

Happy to answer questions about how any of this works.


r/PythonLearning • • Aug 15 '25

Day 1 Beginning python learning journey

Post image
58 Upvotes

r/PythonLearning • • Jul 25 '25

Showcase First "web app "???

Post image
58 Upvotes

Soooo this is like my first I think like proper project. I know I should add try/ except . But besides that I just need someone to tell me how I did and what should I do next cuz Im self learning and it feels abit underwhelming and like somehow I am not doing it well.


r/PythonLearning • • Jul 03 '25

How can I start learning Python from scratch?

58 Upvotes

Hey everyone!

I'm completely new to programming and I want to start learning Python. Can anyone guide me on how to begin? Like what resources (free or beginner-friendly) should I use, what topics to start with, and how much time I should spend daily?

I would also love any advice from people who learned Python and are now working in tech or building projects.

Thanks in advance!


r/PythonLearning • • Jun 18 '26

Showcase Day 8th Python Learning

Thumbnail
gallery
57 Upvotes

Finally back to the town ๐Ÿ˜ญ

Focus on

-dictionary aka dict :

In dict every set have key and its value

We can call value by using key but not opposite

- set:

Unordered & only accept unique value not copy

And did some revision

Now give me idea for project building or for product ?

Before moving tomorrow in def function and class

#python #coding #ai


r/PythonLearning • • Oct 30 '25

Discussion My 180-Day Python Journey at 40 โ€” From Banking to Coding(Daily Updates, wish me Luck)

57 Upvotes

Hey everyone,

Iโ€™m starting a 180-day journey to learn Python from scratch, and Iโ€™ll be documenting my progress here every day.

About Me

Iโ€™m a 40-year-old guy with a boring bank job in India and no real background in programming.
(Technically, I do have a degree in CSE โ€” but I never really learned anything from it ๐Ÿ˜….)

Over the years, Iโ€™ve explored all kinds of things โ€” freelancing in my 20s, dropshipping, selling on eBay, Seo, spamming chatrooms (good old days), experimenting with AdSense/AdWords, doing some money exchanges (Liberty Reserve, WebMoney, etc.), and affiliate marketing.

Now, all of that feels like a distant past. But my curiosity for coding never went away โ€” Iโ€™ve always admired programmers for what they can build and automate.

Due to some health issues, I had to step away from everything and eventually settled for a stable (but dull) bank job. Iโ€™ve never taken a promotion, simply because Iโ€™ve always dreamed of working from home, doing something meaningful and flexible โ€” something of my own.

Now, I want to get back in the game, start from scratch, and build something concrete.

My Learning Goal

My main goal is to understand Python deeply, focusing on problem-solving, automation, and system-level programming, while skipping the web development side (HTML, CSS, JS, Django, etc.).

By the end of these 180 days, I aim to:

  • Comfortably write, debug, and structure Python programs.

  • Build small tools and utilities that solve real-world problems.

  • Develop a solid understanding of Python fundamentals, OOP, file handling, modules, and networking.

  • Eventually build my own voice changer and a few cybersecurity-related tools (nothing extreme โ€” just things that interest me).

I simply want to build things that work and get back the spark I once had for creating.

My Approach

Iโ€™m following a simple two-day learning cycle:

  • Day 1: Study and understand the topic (concepts, syntax, examples).

  • Day 2: Build a small project or write multiple programs based on that topic to reinforce what I learned.

This cycle will continue throughout the 180 days โ€” or longer, if it takes that much time to master the concepts properly.

Why Post Publicly

Accountability and motivation.
Posting my journey publicly will help me stay consistent and disciplined.
And maybe โ€” itโ€™ll also motivate others who are starting late, restarting after years, or juggling a full-time job while trying to learn something new.

Thanks for reading.
If youโ€™re learning Python too, feel free to drop your tips, feedback, or even join me on this journey.

Day 1 starts tomorrow .


r/PythonLearning • • Oct 18 '25

Showcase Local LeetCode Practice Made Easy: Generate 130+ Problems in Your IDE with Beautiful Visualizations

Post image
57 Upvotes

I built an open source Python package for a local practice environment that generates complete problem setups directly in your IDE.

What you get:

- 130+ problems from Grind 75, Blind 75 (โœ… just completed!), NeetCode 150

- Beautiful visualizations for trees, linked lists, and graphs

- Complete test suites with 10+ test cases per problem

- One command setup: `lcpy gen -t grind-75`

Quick Start

pip install leetcode-py-sdk
lcpy gen -t blind-75
cd leetcode/two_sum && python -m pytest

Why Practice Locally?

- Your IDE, Your Rules - Use VS Code, PyCharm, or any editor you prefer

- Real Debugging Tools - Set breakpoints, inspect variables, step through code

- Version Control Ready - Track your progress and revisit solutions later with Git

- Beautiful Visualizations - See your data structures come to life

What Makes This Different

- Complete development environment setup

- Professional-grade testing with comprehensive edge cases

- Visual debugging for complex data structures

- Ability to modify and enhance problems as you learn

Repository & Documentation

๐Ÿ”—ย GitHub:ย https://github.com/wislertt/leetcode-py

๐Ÿ“–ย Full Documentation: Available in README

โญ Star the repo if you find it helpful!

Docs: https://leetcode-py.wisl.dev/

Blog: https://wisl.dev/blog/leetcode-problem-generator/


r/PythonLearning • • Jun 30 '25

Check palindrome

Post image
57 Upvotes

Check whether word in reverse order is the same or not like : mom,racecar,madam


r/PythonLearning • • Feb 22 '25

I finished "Python Crash Course" by Eric Matthes

57 Upvotes

What a wonderful beginners book. If you have hard time learning through other books like the O'Reilly series or packt or apress, this book is for you. I feel like I learned better through the book than I did with any other material I used before. No Starch Press is definitely my favorite for python now.

Going to start "Automate the boring stuff with python" by Al Sweigart next and 5 others books I picked up all from No Starch Press :)

-noob out.


r/PythonLearning • • Sep 10 '24

Useful chart

Post image
57 Upvotes

r/PythonLearning • • Aug 30 '26

Showcase I made a tic tac toe game

Thumbnail
gallery
56 Upvotes

r/PythonLearning • • Jun 08 '26

Showcase Day 2 Python Learning

Thumbnail
gallery
56 Upvotes

- type conversion

- operators

- input & string operation

#python #coding #ai


r/PythonLearning • • Mar 07 '26

Visualized: Index the Values using a dict

56 Upvotes

r/PythonLearning • • Nov 03 '25

Multiway Tree visualized using memory_graph

56 Upvotes

Understanding and debugging Python data structures gets easier with memory_graph visualization. Here's a Multiway Tree example. A Multiway Tree is similar to a Binary Tree but has an arbitrary number of children making the tree less deep and more efficient.


r/PythonLearning • • Sep 10 '25

Making a word in a sentence capital

Post image
56 Upvotes

im having trouble with syntax to get that selected word in upper case


r/PythonLearning • • Aug 30 '25

Help Request Why did this happen๐Ÿง

Post image
56 Upvotes

r/PythonLearning • • Jun 26 '25

Why does coding feel easier than I expected? What actually makes it hard later on?

56 Upvotes

Iโ€™m currently learning Python and building beginner projects. Iโ€™ve realized that a lot of the time, I can just Google what I need and tweak it to make things work โ€” and it works. It honestly feels like Iโ€™m not using my brain that much, and that almost anyone could do this with a bit of searching.

But I know coding does get harder. So Iโ€™m wondering:

  1. What actually makes programming or machine learning difficult as you level up?

  2. Is it problem-solving, debugging, building bigger systems, etc.?

  3. Do experienced devs and ML engineers still rely on Google and docs.


r/PythonLearning • • May 31 '25

Discussion How Do You Truly Learn All of Python โ€” Core Concepts, Internals, and Hidden Details?

56 Upvotes

I recently started learning Python, and quickly found out that there is no single course that covers the entire language with all the subtle details and concepts โ€” say, for example, integer interning. By entire language I mean the "core python language" and "concepts", not the third party libraries, frameworks or the tools used for the applied domains like Data Science, Web dev.

Just a few days back I came across the concept called interning and it changed my pov of integers and immutables. Before that I didn't even know that it existed. So I can easily miss out on a few or more concepts and little details. And I won't know what else are there or what i have missed. In this case how do I know what details and concepts I have yet to know. And how do I explore these. I know I will hear the answers like do some projects and all, but I also want to know where to find these missed details and concepts.

Any Books or Resources That Cover ALL of Python โ€” including the subtle but important details and core cencepts, not Just the Basics or Applied Stuff?

Is it just the process of learning? Or do we have a better resource that I can refer through?

Or is it that I just keep learning everything on the way and I need to keep track of what new details and concepts I discover along the way??

Or anything else that can be a good practice??

I am sincerely, all open to the suggestions from all the Experts and new learners as well.


r/PythonLearning • • Nov 19 '25

Showcase Started Python yesterday. Did my first script on my own.

Post image
55 Upvotes

Had fun figuring out how to make this text game. Wish I knew how to space out the lines so it more legible but still enjoy how it came out!


r/PythonLearning • • Jul 26 '25

Showcase My first website using flask

Thumbnail
gallery
55 Upvotes

This is My first site, a ask organization, I used Flask and then put it in Render, it is just pilot site , what do you think.


r/PythonLearning • • Jun 15 '25

How can I condense the repeating If/elif statements?

Thumbnail
gallery
55 Upvotes

My assignment was to make a wordle game using for loops. My program works, but that if/elif nightmare is bugging me. The problem is I don't know how to assign each {word} variable in one code line without constantly overwriting what the variable is! Does that make sense?

Essentially, I want to keep the code working with the for loops while removing the variable assignment nightmare.


r/PythonLearning • • Aug 30 '26

DAY 4.

Post image
54 Upvotes

wrote this today was revising loops and math function that i did not so long ago.


r/PythonLearning • • Jul 15 '26

Ready for (dif), right?

Thumbnail
gallery
54 Upvotes

r/PythonLearning • • Jun 23 '26

Day 2 of learning Python: Shopping List

Post image
54 Upvotes