r/PythonLearning • u/NeitherReception3766 • 1m ago
Python If Statement #coding #python
r/PythonLearning • u/NeitherReception3766 • 1m ago
r/PythonLearning • u/Defiant_Meal1898 • 1h ago
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 • u/Content_Fee_3163 • 2h ago
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:
Core Applications & Tasks: Where is Python actually used in Mechanical Engineering?
Essential Libraries & Software: Beyond basic Python, which libraries and external engineering software integrate well with Python, and in what order should I learn them?
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?
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 • u/abelhamim • 13h ago
I honestly have no idea what I can build with Python yet.
I only have one idea inspired by the movie Blade Runner 2049.
It's called Joi, She is an interactive holographic AI programmed for emotional responsiveness.
If anyone is interested in this concept or has experience with something similar, I'd love to hear more about it in the comments.
r/PythonLearning • u/Csenone • 19h ago
r/PythonLearning • u/modern-dev • 20h ago
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 • u/Being_1444 • 22h ago
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 • u/GentleMoon32776 • 1d ago
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 • u/svanidzelal • 1d ago
r/PythonLearning • u/Top-Pressure3737 • 1d ago
(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 • u/PanelReader • 1d ago
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 • u/ImmediateLeather2359 • 1d ago
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 • u/RegularBother614 • 1d ago
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 • u/Careless_Ninja_9144 • 2d ago
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 • u/Ecstatic_Complex2714 • 2d ago
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 • u/Every-Film-3837 • 2d ago
I built a game based on William Spaniel's Game Theory 101 Course using pygame.
r/PythonLearning • u/modern-dev • 2d ago
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 • u/NovaBlitz75 • 2d ago
So i coded a minecraft based game :https://github.com/NovaBlitz750/Nova_python/blob/main/Survival%20island%20game/survival_island_cdebugged.py after learning python for abt 6 months and it turned out pretty well. I let claude go wild with it and turned out making minecraft and claude's version is rlly good. Heres the link for claude's version https://github.com/NovaBlitz750/Nova_python/blob/main/Survival%20island%20game/survival_island_claude.py
r/PythonLearning • u/Sensitive-Raccoon155 • 2d ago
r/PythonLearning • u/maya_tf • 2d ago
I'm a bachelor student from a non-tech background.. and I want to learn python/coding from scratch.. but everything seems so overwhelming😭
How can I learn python from scratch like completely as a beginner?
Can someone suggest some resources where things don't seem overwhelming as a beginner?
How long can it take for me to learn python and build some good projects?
r/PythonLearning • u/Vgames50 • 2d ago
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 • u/Darwin1926 • 2d ago
I'm studying on my own, but I've reached a point where I really need help 😵
r/PythonLearning • u/PossibleProgress3316 • 2d ago
I'm looking to learn more how to build GTK applications mostly for Fedora using python, I've been doing the CS50P course but also looking for some more learning material any suggestions will be helpful
r/PythonLearning • u/pedrinjose • 2d ago
I'm learning Python, and this part has left me a little confused, because in other languages the way it's used is different; in Python you use @property, I'd like to understand how this really works in a simplified way, so I can truly grasp it and not just memorize it. If you could help me, I'm still new to programming.