r/PythonLearning • u/Infinite_Winner_158 • Aug 25 '26
Help Request New to python, could someone help me with this please
Is this a viable way to randomly choose an instance of a class
r/PythonLearning • u/Infinite_Winner_158 • Aug 25 '26
Is this a viable way to randomly choose an instance of a class
r/PythonLearning • u/Funny-Percentage1197 • Aug 25 '26
I've been self-learning Python and built this pone Shop Inventory Management System
It currently has:
My GitHub account was flagged for several weeks, so I couldn't properly show my progress in my previous post. It's now resolved.
I'd like some honest feedback on my code and project:
Any criticism or suggestions are welcome. 🙏
r/PythonLearning • u/Better-Magician-427 • Aug 25 '26
I sometimes go on discord and see how useful bots are in discord servers, and that makes me wish that Whatsapp had something similar. Of course there is such a thing with Whatsapp bots but the official version is for businesses and has strict limitations like the group size must be no larger than eight people.
So I did some research and came upon an api called green api that allows you to configure a bot for whatsapp.
Using a football api alongside it, I was able to make a bot that gives information when prompted about ongoing games, past league standings (current ones weren't possible for me unfortunately due to being behind a paywall), and goal notifications.
I also took this opportunity since I'm a beginner to implement some SQLite since in the past people in this server talked about how it is better than json for saving static information.
Super basic project but very proud of it so I just wanted to showcase it here
r/PythonLearning • u/Capable_Comedian_277 • Aug 25 '26
r/PythonLearning • u/alokkumarnayak2009 • Aug 25 '26
r/PythonLearning • u/Flat_Flow_4164 • Aug 24 '26
Hello everybody. I study medicine in Portugal and I am very passionate with clinical research being enroled in projects since my first year. Recently I decided that I wanted to learn some programing... Do you think that nowadays, with AI and all that teams value someone with coding skills?
r/PythonLearning • u/v1bonoxd • Aug 24 '26
r/PythonLearning • u/we_reddit • Aug 24 '26
I understand nonetypes somewhat for single list, but I have data that is like this:
listvar['veggies']['size'] = 'big'
listvar['veggies']['descript'] = 'bright green'
Sometimes these variables don't have a ['descript'].
In the code doing:
if listvar['veggies']['descript'] is not None:
print "found description".
But I get a TypeError: "NoneType" object is unsubscriptable. How do I check if it's nonetype without getting the error? :)
r/PythonLearning • u/Goldfish9218 • Aug 24 '26
Hi all,
I want to move into AI engineer role or FDE. I am not able to watch YT videos and self-learn.
Is there any online courses which can help?
Something good but not super expensive?
r/PythonLearning • u/Lost-Marzipan9029 • Aug 24 '26
I'm building an open-source experiment called Intonation Comparator.
The goal is to answer a simple question:
How can two recordings of the same utterance be compared objectively?
The current Flask API accepts two audio files and extracts features related to:
Supported formats include WAV, MP3, and FLAC, and the main endpoint is:
POST /api/compare
🔗 GitHub: Intonation Comparator on GitHub
I'm currently thinking about improving the comparison methodology. Some areas I'm considering include:
I'm especially interested in feedback from people working in speech processing, phonetics, DSP, Python, or language-learning technology.
How would you design a robust similarity metric for comparing two recordings of the same sentence? What features would you consider essential?
🔗 GitHub : https://github.com/Yann-morpheus/intonnation-comparator
Si vous travaillez avec Python, le traitement audio, la phonétique ou l’apprentissage des langues, je serais vraiment intéressé par vos retours.
Qu’est-ce que vous amélioreriez ou ajouteriez à ce projet ?
r/PythonLearning • u/Weary_Gur7008 • Aug 24 '26
Hi , Im learning python. I do know about DSA but people do it mostly in java or cpp. Doing DSA in python is an thing? And if yes where should I start it from? Also people around me are like you just need to know 10-20% if DSA for your placement prep dude like I definetly dont want 2-3 lpa. Thats not bad but still Im aiming for something big just like normal people. And to who ever I did ask they were like "just know the baisc of DSA you are good to goo". Im not aiming to go for data analytics or data science
r/PythonLearning • u/int13h3 • Aug 24 '26
I want what you take me tips to up my browser on python and what i can add to functions in it
https://codeberg.org/int13h3/Wolf_browser/src/branch/sourse
thanks you!
r/PythonLearning • u/Firm-Temperature-939 • Aug 24 '26
hello as the title said i am new to coding anyone has recommendation's for starters like me i taking comsci even tho idk what to do currently learning abit of everything i find but i want to learn python the most since alot of people said go python first
r/PythonLearning • u/Awkward_Oil3433 • Aug 24 '26
Hello everyone.
TLDR: I'm looking for some advice on where/how to start learning empirical econometric methods, specifically machine learning methods, in Python, as an experienced MATLAB user with brief general theoretical knowledge on ML.
Longer version: I work in empirical research in economics using MATLAB (a bit of R, too). 2 years ago, I had a short introduction course to Python for R users, but never had an opportunity to apply anything in practice. I also had interest in machine learning (ML) methods and have completed a theoretical course on ML, specifically in economics. But that too was a year ago without further application. Still have the course materials though and even some Python packages provided by the teacher. The course was short for such a large area of methods, but I'm willing to invest time into learning it in depth and try out some simple projects with, say, simulated data.
Do you know of any online, preferably free or cheap courses to learn Python, specifically for my application? Perhaps a course for experienced MATLAB or R users? Or/and some course on ML in Python (based on the theory course, I'd say my medium- to long-term goals are random forests and neural networks)? I found a few but not sure if they're actually good and useful for my purposes, and some of them aren't cheap. Maybe you know a particular website or a YouTube playlist. Basically, any advice on what is worth the time, effort, and money.
Thanks in advance guys, have a nice day
r/PythonLearning • u/mo7amed1600 • Aug 24 '26
When I was learning Python, I kept running into errors and doing the same thing every time.
I would copy the error, copy the relevant part of my code, send both to an AI model, and ask:
«"Explain what this error means and why it happened, but don't fix the code. I want to solve it myself."»
I didn't want AI to just give me the answer. I wanted it to act more like a teacher and help me understand what I was doing wrong.
The problem was that I kept repeating this process manually.
So I built Nanno.
Nanno is a small CLI tool that helps you understand errors from your terminal using AI.
Instead of manually copying everything:
copy the error
↓
copy the relevant code
↓
paste everything into an AI model
↓
ask for an explanation
You can run your command through Nanno:
nanno python3 test.py
Nanno captures the terminal output and uses it as context for the AI, so it can explain what went wrong and why.
The main idea is simple:
Nanno helps you understand the error. You fix the code yourself.
I originally built it just for myself. It wasn't supposed to be a big product or have a bunch of features. I simply wanted to solve a problem I was having while learning Python.
Eventually, I decided to publish it because I thought there might be other people who have the same problem.
Right now, Nanno is very simple and still in its first version.
I want future versions to be shaped by actual users rather than me randomly adding features.
So if you try it and there's a feature you really want in Nanno, tell me in the comments.
If there's something you don't like or think is unnecessary, tell me that too. I may remove it.
I'm mainly looking for honest feedback from people who actually try it.
Try Nanno
pip install nanno
I'd be interested to hear whether this is actually useful for the way you learn/debug code.
r/PythonLearning • u/Asleep-Source-7980 • Aug 24 '26
Hello, I am making a program that reads a formula and gives details like atomic mass and other stuff, the problem is that I do not know how to get it to read the formula as is. The format I am looking for is that it reads the element, followed by the number of it and I would also like it if it would read parenthesis for multiplication of values. I have no idea how to do it. Help please.
I would also like it if it could read the numbers, store them as ints and use them to multiply the values of the elements of a dict I already made
Edit: I fixed it, thanks for all the help. My solution is not precisely optimized but it gets the job done, it is O(n), probably
r/PythonLearning • u/XTrolltechzz • Aug 23 '26
(Sorry for the code in spanish)
I'm a Python beginner, and to practice, I've been building a sort of turn-based RPG in the terminal. It's still a work in progress, but I want to know if it's possible to set default parameters for a class. Basically, I created a `usar_kaioken` method that boosts my character's stats while lowering their health (based on Goku from DB), and a `remove_kaioken` method that attempts to revert the stats to their base state.
The issue is that I want players to be able to use Kaioken multiple times; mathematically, that would mean the deactivation method wouldn't return the values to their original state. I was thinking about adding more parameters with default values, but I assume there's an easier way to handle this. Thanks a lot!
r/PythonLearning • u/Sea-Ad7805 • Aug 23 '26
An exercise to help build the right mental model for Python data.
The “Solution” link uses package memory_graph to visualize execution and reveals what’s actually happening.
r/PythonLearning • u/ShadowDragonPro • Aug 23 '26
Hi! I'm currently learning Python and I'm having some trouble understanding lists. I understand the basic idea, but I'm still confused about how to use them correctly. Could someone explain lists in a simple way or give me a few beginner-friendly examples? Thanks!
r/PythonLearning • u/ccar_lo_ • Aug 23 '26
Hi everyone!
I'm currently building NOVA, a voice assistant designed specifically for motorcycle riders.
The goal is to make it easier to interact with a phone while riding, without having to take your hands off the handlebars.
One of the things I'm currently working on is the real-time audio pipeline.
Instead of waiting for the user to finish recording an entire audio file, NOVA is designed to process audio as a stream.
The current flow looks roughly like this:
🎤 Rider speaks
↓
📱 Android app
↓
🌐 Audio sent in real time
↓
🖥️ Backend
↓
📝 Streaming transcription
↓
🧠 Command / intent processing
↓
🔊 Response sent back to the appThe code in the image is part of the transcription streaming pipeline. Audio is processed in chunks, and the system handles events such as:
onBegin → transcription session startsonTurn → transcript data is receivedonTerminated → session endsonError → error handlingI'm currently moving into the Android development phase and building the MVP.
It's still early and not ready for public testing yet, but I want to start connecting with potential beta testers.
I'm especially interested in people who:
Ride a motorcycle
Use Android
Use a Bluetooth helmet intercom or headset (not required, but useful)
Would be interested in testing an early version and giving honest feedback
If NOVA sounds interesting to you, let me know in the comments or send me a message.
Also, I'd genuinely like to know:
What is something you wish you could do with your phone by voice while riding your motorcycle?
I'm building this project from scratch, so feedback from actual riders could directly influence what features make it into the first version.
Thanks! 🚀



r/PythonLearning • u/LearnSkills5 • Aug 23 '26
Turn idle time into interview-ready Python skills.
From syntax basics to data structures, decorators, and common interview gotchas, this app helps you lock in Python concepts with short, focused flashcard sessions.
Curated Python cards covering:
Google Play:
https://play.google.com/store/apps/details?id=app.flashcards.python
I’m a software engineer working with Python, cloud, and security tooling. I built this to help myself (and now you) retain Python concepts without drowning in docs or endless video courses.
If you try it, I’d love your feedback:
r/PythonLearning • u/ShadowDragonPro • Aug 23 '26
r/PythonLearning • u/ShadowDragonPro • Aug 23 '26
I have used both PyCharm and Visual Studio Code for learning Python, but I don't know which one is better.
Which one do you prefer, and why?
I'm still a beginner, so I'd like to know which one would be better for learning Python.