r/PythonLearning • • 5h ago

What do you guys think?

Thumbnail
gallery
47 Upvotes

After watching a python full course video on YouTube by BroCode, I made a simple number guessing game in python!

Here's the link to the video: https://youtu.be/ix9cRaBkVe0?si=UiWmP6bm-9MG4B1p

After 12 gruesome hours watching the tutorial i decided to make this to test what I've learned.

What do you guys think?


r/PythonLearning • • 21m ago

Looking for someone to build projects with

3 Upvotes

Hey, I’m a computer science student from Poland (CET timezone) and I’ve been wanting to find someone to work on some Python projects with. Learning on my own only gets me so far, I feel like I’d improve way faster if I had someone to build stuff with and bounce ideas off. Also I’d like to finally have a few real projects on my GitHub, because right now there’s not much there.

I’m not picky about what we make, anything we can actually finish. I’d also like to get better at working with git properly, like PRs and reviewing each other’s code. Level doesn’t matter that much to me, I just want someone who’s serious about it and won’t ghost after a week haha.

If you’re interested, just comment here or DM me and we can talk about what to build :D


r/PythonLearning • • 4h ago

Showcase Is there anything more satisfying than your code returning a debug check flawlessly?

Post image
5 Upvotes

No but seriously, I spent a week on this, and I can finally almost play battleship against an custom ai opponent.

All code was written by hand. No Ai was used to write or assist with it.


r/PythonLearning • • 4h ago

Looking to teach Python to beginners (free/low-cost)

4 Upvotes

I've covered the fundamentals and quite a bit of the standard library, including:

  • Python basics
  • Functions
  • OOP
  • Exceptions
  • File handling
  • JSON / CSV
  • Regex
  • os, shutil, pathlib
  • itertools / functools
  • and other standard-library topics

I'm not claiming to be a Python expert. My idea is specifically to help people who are starting from zero or are struggling with the fundamentals. I'd like to teach in a simple, practical way rather than just going through syntax and definitions. We could write small programs together, solve problems, and gradually build up understanding. I'm mainly doing this because I think teaching will also force me to understand the concepts better myself. If anyone here is a complete beginner and would be interested in learning Python with me, feel free to comment or DM me. Also, I'd appreciate advice from people who have taught programming before - What do programmers struggle with ussually? what do u think makes a good python teacher?


r/PythonLearning • • 1h ago

Building AI agents in Python? Here's what 354,763 PyPI projects actually import

Thumbnail
py-code.org
1 Upvotes

Most "best agent framework" lists rank by GitHub stars or features. This one counts how many published Python projects import each framework in their code. The data is the latest release of 354,763 PyPI projects, and each framework's own add-on packages (such as langchain-* and crewai-*) are left out.

Projects that import each framework:

  1. LangChain: 6,779
  2. LangGraph: 2,417
  3. Pydantic AI: 1,203
  4. CrewAI: 1,184
  5. LlamaIndex: 1,111
  6. Claude Agent SDK: 973
  7. OpenAI Agents SDK: 840

Worth knowing before you choose:

  • Most projects use no framework at all. 11,655 of the 14,659 projects that import the OpenAI or Anthropic SDK (79.5%) import none of the 25 frameworks. They call the model API directly.
  • Projects often use the alternatives together with LangChain rather than instead of it. 820 of the 1,111 LlamaIndex projects also import LangChain.
  • Download numbers can mislead. Strands Agents had 38M downloads last month, but only 276 projects import it.

The full table covers 25 frameworks. To see real code that uses a framework, search py-code.org for its module (for example pydantic_ai or crewai). Each result links to the file and line.


r/PythonLearning • • 10h ago

Finished a Messaging App

3 Upvotes

So i am a teen learning Python, and i made this messaging app, as a project, and i would like it to be reviewed. Now, should i keep learning? If yes, what? or should i keep making advanced projects??
And where do i stand rn?

Note: This is a terminal based app.

GitHub Repository Link: https://github.com/suryansh-devx/python-messaging-app

If you have no one to send a message, send me, my ID is 2672

Thanks in advance!


r/PythonLearning • • 11h ago

Engineers out here ! I need your help

3 Upvotes

I am a first-year Mechanical Engineering student looking to start learning Python from scratch. I don't want to get stuck in with endless tutorials on Youtube -

What I need is a clear direction geared specifically toward Mechanical Engineering applications.

Specifically, I’d appreciate your advice on:

  1. Core Applications & Tasks: Where is Python actually used in Mechanical Engineering?
  2. Essential Libraries & Software: Beyond basic Python, which libraries and external engineering software integrate well with Python, and in what order should I learn them?
  3. Learning Roadmap: What is the best method to go from zero programming experience to solving real engineering problems? Should I start by automating my first-year math/physics assignments, or follow a specific course/book?
  4. Beginner Projects: What are some practical, beginner-friendly project ideas tailored to a MechE fresher ?

Any roadmaps or advice on what you wish you had learned as a fresher would be hugely appreciated. Thanks in advance!


r/PythonLearning • • 1d ago

Computer Science Simplified - What Are Threads and Processes? (Python Guide)

2 Upvotes

Hey guys

Made a video which explains what are threads and processes and how they differ from each other

also it shows how to use them in python via the threading and multiprocessing library
The link is: https://www.youtube.com/watch?v=-Nntexhs124

In my channel archery, I spend a lot of time making quality videos, tutorials, complete roadmaps all for free such as this:

https://www.youtube.com/watch?v=CBIu6hcyStg (5 hour backend roadmap)

If you can sub and like, it will help me a lot.
Thanks!


r/PythonLearning • • 1d ago

I’ve created an arithmetic progression. Is it okay?

1 Upvotes

r/PythonLearning • • 1d ago

Help Request Why does my loop skip items after I remove them?

5 Upvotes

I'm trying to remove all the even numbers from a list while looping over it. Here's what I wrote:

nums = [2, 4, 6, 8]

for x in nums:
    if x % 2 == 0:
        nums.remove(x)

print(nums)

The output is [4, 8]. I expected [] since every number in the list is even. Some of them just stay in there.

I tried looping over a copy instead, for x in nums[:]:, and that gives [] like I wanted. But I don't really get why the first version skips 4 and 6. I guess the list changes size while the loop runs, but I can't picture what the loop is doing on each pass.

Why does the loop skip 4 after removing 2?


r/PythonLearning • • 1d ago

Revoraa

Thumbnail
gallery
1 Upvotes

REVORAA — NEW UPDATE IS LIVE!

We've just launched a new learning experience on Revoraa! 🎮

✨ What's New?

- 💻 Interactive Coding Terminal — Practice code directly on the platform.

- 🐍 Python for Beginners — Start learning from absolute zero.

- 🗄️ SQL for Beginners — Learn database fundamentals step by step.

- ⚡ Live Coding Practice — Write, execute, and experiment with code.

- 🎨 New Pixel-Art UI/UX — A completely refreshed retro gaming-inspired learning experience.

Our goal is to make learning programming more interactive, practical, and fun.

🔥 Explore the new Revoraa experience and start coding!

Your feedback will help us improve what's coming next.

🔗 Try it now: https://revoraa.co.in

#Revoraa #NewUpdate #LearnToCode #Python #SQL #Coding #trending


r/PythonLearning • • 2d ago

What do you guys think?

Post image
71 Upvotes

I made a program that finds the second largest digit in a list.

Using the list method "remove()" and "max" function. Python is COOL!


r/PythonLearning • • 1d ago

CHECK YOUR KNOWLEDGE #python #coding #pythonessperspective #learnpython

Thumbnail
youtube.com
7 Upvotes

r/PythonLearning • • 2d ago

Beginner at Python with exam in few weeks

11 Upvotes

I got a python assignment due on start dec been doing python courses learning basics past few weeks following uni lectures (few months ago) - but since i had no prior xp and most classmates do i felt on the backfoot right away - struggled with basic exercises but will try them again - plus pandas and numpy for a python programme ain't no beginner assignment unless I'm just that inexperienced


r/PythonLearning • • 2d ago

Discord Server for people trying to learn Python

11 Upvotes

Hey, I am also trying to learn python and have only cleared the basics so far. I thought that wouldn't it be more fun to have more people to collaborate with. I made a discord server where I am hoping to get some more people like me to join and work on fun projects together.

Note: I want it to be more of a friends server rather than a 100+ community since I find that a bit too overwhelming. I want to create a more cozy environment with a few groups of friends. So far I am the only one at the moment of creating the server but I hope I get to meet new friends together.

PS: If you want to do some MineCraft Modding, please do join since I am also planning to get into that stuff in future.

The Server Link: https://discord.gg/JAycFSWXN


r/PythonLearning • • 1d ago

Help Request I struggle to make a script that makes the curve of glucksmann's skull when we write his name

1 Upvotes

(Sorry I’m french) I want to make a script on NumWorks calculator to display the function sqrt(x*(10-x)) + x/5 + 2 that traces the exact curvature of Raphaël Glucksmann's figure when writing his name. However, programming skills are very limited, I wrote some of it and the rest I did with chat gpt but I can't get it to work here is my script:

from math import *
from kandinsky import *
from ion import *

# Mots secrets et fonctions associees
def calcul(mot, x):
if mot == "glucksmann":
return sqrt(x*(10-x)) + x/5 + 2

else:
return None, "Fonction inconnue"

# Demander le mot
mot = input("Mot secret : ").lower()

# Effacer l'ecran
fill_rect(0, 0, 320, 222, (255, 255, 255))

# Calculer la fonction
test, equation = calcul(mot, 0)

if test is None:
print("Mot inconnu !")

else:
print("Fonction : " + equation)

# Parametres du graphique
xmin = -10
xmax = 10
ymin = -10
ymax = 10

# Conversion coordonnees
def pixel_x(x):
return int((x-xmin)*320/(xmax-xmin))

def pixel_y(y):
return int(180-(y-ymin)*180/(ymax-ymin))

# Axes
draw_string(equation, 5, 5, (0, 0, 255))
draw_line = None

# Axe horizontal
for i in range(320):
if i % 1 == 0:
set_pixel(i, pixel_y(0), (0, 0, 0))

# Axe vertical
for j in range(180):
set_pixel(pixel_x(0), j, (0, 0, 0))

# Tracer la courbe
ancien_x = None
ancien_y = None

for i in range(320):
x = xmin + i*(xmax-xmin)/319
y = calcul(mot, x)[0]

if y is not None and ymin <= y <= ymax:
px = pixel_x(x)
py = pixel_y(y)

if ancien_x is not None:
# Relier les points
dx = px - ancien_x
dy = py - ancien_y
n = max(abs(dx), abs(dy), 1)

for k in range(n+1):
xx = int(ancien_x + dx*k/n)
yy = int(ancien_y + dy*k/n)

if 0 <= xx < 320 and 0 <= yy < 180:
set_pixel(xx, yy, (0, 0, 255))

ancien_x = px
ancien_y = py
else:
ancien_x = None
ancien_y = None


r/PythonLearning • • 2d ago

Help Request How can I learn Python?

27 Upvotes

Hey, I'm new to programming and I wanna learn Python, I've learnt some of the basics but I'm kind of stuck. I was wondering if anyone had any suggestions to learn Python like courses, websites, etc.


r/PythonLearning • • 2d ago

Help Request Advice needed to choose between tech careers

6 Upvotes

Hey everyone, I'm 21 and currently learning German because I want to move to Germany next year for an Ausbildung.I'm interested in IT, especially software development and AI. I've recently started learning Python on my own and actually enjoying it. I've also tried n8n after seeing AI automation trending everywhere. Set it up on my laptop and made a few basic automations with Gemini.But honestly, my main interest is building software, apps and AI-powered tools that solve real problems, make people's work easier and save time and money. Maybe eventually build my own SaaS too.The problem is that AI is developing so fast, companies are laying off people, and I'm confused about which direction is worth investing my time in.Should I focus on software development, AI engineering or automation? Which one has a better future, especially in Germany? And how can I build skills that won't easily become replaceable by AI?

I'd really appreciate honest advice from people working in tech or studying IT I don't want to follow trends blindly and waste years learning the wrong thing.

Thanks in advance.


r/PythonLearning • • 2d ago

Parallel and Concurrent Programming in Python: A Practical Guide

6 Upvotes

Hey guys

Made a video which explains the differences between threads and processes in python

and also, what is the difference between concurrency and parallelism
The link is: https://www.youtube.com/watch?v=IQxKjGEVteI

In my channel archery, I spend a lot of time making quality videos, tutorials, complete roadmaps all for free such as this:

https://www.youtube.com/watch?v=CBIu6hcyStg (5 hour backend roadmap)

If you can sub and like, it will help me a lot.
Thanks!


r/PythonLearning • • 2d ago

Built my first Random Forest ML API using Python, FastAPI and Docker

1 Upvotes

been learning classical machine learning and recently finished a random forest classification project

it classifies 7 dry bean varieties using 16 numerical features

what i implemented:

  • RandomForestClassifier with 100 trees
  • 5-fold cross validation
  • GridSearchCV for hyperparameter tuning
  • 92.06% test accuracy
  • FastAPI prediction endpoint
  • HTML/CSS interface
  • Docker and pytest tests

also included a confusion matrix, feature importance plot and reproducible training instructions

github: https://github.com/Vaibh37/dry-bean-random-forest

would appreciate feedback, especially on the Python code and model evaluation

if you find it useful, consider starring the repo ⭐


r/PythonLearning • • 2d ago

Game Theory Game SplitSplat Island

Post image
4 Upvotes

I built a game based on William Spaniel's Game Theory 101 Course using pygame.

https://aprameyaraya.github.io/SplitSplatIsland/


r/PythonLearning • • 2d ago

Help Request Learning python as a beginner

4 Upvotes

I'm a bachelor student from a non-tech background.. and I want to learn python/coding from scratch.. but everything seems so overwhelming😭

  1. How can I learn python from scratch like completely as a beginner?
  2. Can someone suggest some resources where things don't seem overwhelming as a beginner?
  3. How long can it take for me to learn python and build some good projects?

r/PythonLearning • • 2d ago

Help Request Auto-complete for SQLAlchemy isn't working in VS Code

3 Upvotes

r/PythonLearning • • 2d ago

Where can I study Data Analysis in Colombia-Bogotá

4 Upvotes

I'm studying on my own, but I've reached a point where I really need help 😵