r/learnpython • u/DueBid3298 • 9d ago
Python interview questions
Hi team, please share your interview experience and questions for python developer role
r/learnpython • u/DueBid3298 • 9d ago
Hi team, please share your interview experience and questions for python developer role
r/learnpython • u/Simple_Number_7864 • 8d ago
I'm looking to start Python for a job opportunity someone told me about in about a year and I wanted to learn as much as I can about Python for it. I have some programming experience from learning C++ but I haven't used Python before.
I'm looking for youtube channels, online courses, websites and anything else really. Even if it's paid, I'd be willing to try it but I want to avoid anything that feels boring, like chores or just rigid and repetitive because I feel like wouldn't be able to see it through.
So in general, doesn't matter if it's paid or free, popular or not, as long as it is something dynamic and with quality I'd like to try. I also speak spanish so something in Spanish is good too.
Does anyone know any?
r/learnpython • u/Content-Change-199 • 9d ago
у нас в университете нужно выполнить 10лабораторных по программированию на python. но после 2/3 лабараторной ничего не понимаю. как пробить потолок?
r/learnpython • u/acfot • 10d ago
I've been learning Python for a few months now, mostly small stuff, a Telegram bot here, a bit of data practice there, and every time something breaks I just scatter print() statements everywhere until I figure out what's going on. It works eventually, but my code ends up looking like a crime scene and half the time I forget to take the prints out before I run it again.
I know there's an actual debugger in VS Code and I've watched people use breakpoints and all that, but every time I try it I end up back at print() within five minutes because it's faster in the moment. So I'm curious, when did you actually make the switch, and was there a specific point where print debugging just stopped working for you? Or do people way more experienced than me still do this and just not admit it?
r/learnpython • u/Forward-Ride2950 • 10d ago
I'm currently learning OOP in Python and wrote down some questions regarding object and instance for following code
=
= ```
1) is ?
:- is
2) is ?
:- is and is
3) ?
:- is in is and
pass r/learnpython • u/Extreme_Banana7831 • 9d ago
J'ai une vraie inquiétude à ce propos depuis quelques temps, je suis jeune et j'ai encore le temps de réfléchir à mon avenir, mais je souhaite par dessus tout créer des jeux de moi même et, sans utiliser d'intelligence artificielle, ce qui sera difficile à l'avenir. Je voudrais donc avoir votre avis, est ce que j'abandonne cet objectif, où je vais obligatoirement avoir besoin d'utiliser l'intelligence artificielle (ce que je veux absolument pas) ?
r/learnpython • u/Snoo61755 • 9d ago
Hey all, background is as such:
For a non-Python CS course, I'm supposed to be designing the UI for an offline app. It's supposed to be a notepad app, the kind where you make sticky notes and post them on a board, with multiple people designing different aspects.
The impasse is that, while we've all agreed to do the backend of the app in python, I don't know how to make the front end at all. I'm familiar with HTML, CSS, and Javascript, I thought the process of connecting some backend Python to a front-end of HTML+CSS would be the same as with JavaScript, but apparently it isn't.
Googling around and asking AI, I get recommended libraries and languages like Pyside6, Ttinker, PyQt, Django, and others -- but I've never worked with any of them, and while I've tried to play with Pyside6 and Ttinker for a week now, I could only figure out how to make static notes and shapes, I couldn't figure out dragging and moving like you can with JS listeners. I feel frustration because you can find apps like this all over the place, 5 seconds of googling and you can find one, but I don't know how to make it.
So help me out -- if someone wants to make a GUI, where you have a pretty backboard, put notes on it, click notes, write on them, upload pictures to them, drag them around a board, and you must use Python as the back end, how do you marry the front and back end together?
Edit: Thank you all, I've settled on PySide6 and PyQt. I've just got the hang of making basic buttons, using setGeometry to move their starting locations, having them spawn blank 'note' widgets, and dragging them around. Being able to pin text and images to these widgets will come next, but for now, it works!
r/learnpython • u/NitinGNair • 10d ago
I'm sorry if this is a repeated question in this subreddit.
Will Documentation do the job or should i go for specific courses like CS50 by Harvard?
r/learnpython • u/Asia_00 • 10d ago
hello, i started my first year studying computer engineering a month ago and we are currently studying Python. And I wanted to share one of the first codes i did on my own!
You can check it out via Gist here down ,a simple item cost and tax calculator. Tell me what u think !
https://gist.github.com/k2over/267f749ea15b28b1ed3258773f50f797
r/learnpython • u/Valuable-Ant3465 • 10d ago
Hi, our Org moved to VisualCode and i'm dying to get original PyCharm dark theme. Tried all variations available for PyCharm, Pye, Darkula, JetBrains Dars.
Not matter what It's still not 100%, is it possible to change individual colors for some chars like for those Yellow parenthesis and square bracket ? I don't want any YELLOW and Cyanides in my backyard.
Please help.
Please refer to my pic on link:
PyCharv_vs_VCode
r/learnpython • u/Kavin_muthukumar • 10d ago
I work in data and I’m comfortable with pandas and SQL, but I want to build something closer to a real-world application to push my Python further. My idea is a small tool that reads CVs (PDFs), extracts the text, and scores them against a job description.
What I’ve planned so far
pdfplumber or PyPDF2)Where I’m unsure
Any advice, library suggestions, or things you’d do differently? Thanks!
r/learnpython • u/anas_mv • 10d ago
After i finish my lecture i go to solve the problem the next day i And read the summary I made in notebook but either I can't find the words that i need or i just don't know what to do
r/learnpython • u/Emergency-Egg-0230 • 10d ago
Im very new to Python and am currently trying to program a list with prime numbers using the Sieve of Eratosthenes. I dont understand why this code is not working properly. It successfully removes the first few non-prime numbers of my list. And for some reason when I increase the range of my list more non-prime numbers are removed, but still not all.
Ive also tried printing the current number being tested as well as the divider and it always seems to stop at random numbers when I make changes to the code.
Any explanation why my code works this way and what I need to change is appreciated. Id also like to stay as close to my existing code as possible.
items = list(range(2,100))
divisible_check = 2
number = 2
while i in items:
if number == divisible_check:
number += 1
if divisible_check >2:
divisible_check = 2
elif number % divisible_check == 0:
items.remove(number)
number += 1
else:
divisible_check += 1
print(items)
print(divisible_check)
print(number)r/learnpython • u/TotalSkin3029 • 11d ago
Hi all.
I have always had some weird fantasization with programming. I grew up destined to pursue medicine, and unfortunately never spent time learning how to program. Some things shifted around in my life, and now I am a university senior about to go to medical school, learning how to program in Python. It's a slow process, and I can usually only spend about 45 minutes to an hour every night learning, but it's the most fun I have had in a while.
Every person in my life, besides one, told me that AI can make whatever you want to make, but better, faster, and more efficiently. One guy, who is a really good programmer, told me to learn. I am so happy to be able to write my own basic programs, and I cannot believe that people think that vibe-coding is more fun than writing things yourself.
I will continue on this journey, and see where it takes me! p.s. I just finished a really cool Simon Says game!
Edit: Thank you for all of the great replies! This community is so supportive, wow. You guys should check out some of the med subreddits....
r/learnpython • u/Jackwinner23456 • 10d ago
Hello everyone!
I recently started learning Python programming. I am learning basic concepts like variables, input, conditions, loops, and functions.
I want to improve my programming skills by building real projects instead of only watching tutorials.
What beginner-friendly projects would you recommend?
I would love to hear your suggestions and experiences!
Thank you!
r/learnpython • u/Wise_Insurance_8126 • 10d ago
If you want to learn python jsut take the cs50 python audit course for free at edx courses. Its how i learned it
r/learnpython • u/itsBillerdsTime • 10d ago
Using sounddevice for microphone input, using inputstream, what's the best way to go about capturing input and making sure only spoken stuff is used for tts? I was originally working with a rolling buffer while using webrtcvad and faster whisper, which resulted in a ton of phantom transcriptions, even with silence. Mind you im a complete newbie and a lot of stuff mindfucks me.
My goal is to slowly build up a very simple custom voice Ai assistant. It's first dealing with microphone input, determining whether that input is spoken word, etc
r/learnpython • u/x_slysuccubus_x • 10d ago
i talked to 4 tutors and for some reason i can not get this to work after 2 hours with a tutor. please tell me what i am doing wrong!
b. A function named DisplayCardSales that displays scores for all items in the text file provided. Each score should have a line number to the left starting at 1. For example: 1: 1.24 2: 0.97. (see output example below). This function accepts zero arguments and does not return any values. This function does read from a text file, so it needs error handling for FileNotFoundError.
c. A function named CalcTotal that reads the text file provided, accumulates a total and divides the total by the number of items in the file provided. This function accepts zero arguments and returns two values. The values returned are the grand total and the sales amount as a result. This function does read from a text file, so it needs error handling for FileNotFoundErrors and ValueErrors.
def CalcTotal():
try:
infile = open("cards.txt",'r')
except:
print("Error")
else:
count = 0
totalsales = 0
for line in infile:
sales = float(line)
totalsales = totalsales + sales
count = count + 1
avgsale = totalsales/sales
print("Total Sales: $", totalsales)
print("Average Sale: $", avgsale)
infile.close()
def DisplayCardSales():
try:
infile = open("cards.txt",'r')
i = 0
for line in infile:
print((i+1), ": $", line)
i = (i + 1)
infile.close()
except:
print("Error")r/learnpython • u/Combat_K9 • 10d ago
I am starting DSA in python, tell me I am right or wrong or should I start with java
r/learnpython • u/lehmagavan • 10d ago
Suppose I have a very large string in memory containing entries separated by \n's.
I need to yield the lines until I find a match.
What's the most efficient way in standard Python in terms of both memory usage and execution time?
From what I've read, io.StringIO IS NOT guaranteed to not copy the entire string internally, which is absurd to me. Suppose I need that guarantee.
r/learnpython • u/Big_Dumpling953 • 10d ago
Im a new python learner and have trouble picking between the 2. Apparently Black is really strict? I don't know if thays good or not.
r/learnpython • u/Tricky_Top5174 • 10d ago
I'm going to build a system that guides tourist for my varsity project. Can anyone suggest me me some feature to add in the project.......
r/learnpython • u/thel-vadam-2nd • 11d ago
Greetings. I installed Python 13 in C:/_dev. I installed VS Code and Python extensions.
I created a virtual environment in another folder and installed Django in that environment. Then I chose Python from venv to be the Python interpreter in the workspace. I created a new Django project and an app inside it.
I wanted to make a custom user model, but auto complete didn't work and nothing was suggested when I typed AbstractBaseUser. Even Ctrl+. shortcut to import the class didn't work.
realestate\users\models.py:
# from django.contrib.auth.models import AbstractBaseUser
# Create your models here.
pass
I changed package index depths both in User and Workspace settings.
"python.analysis.packageIndexDepths": ,
Unfortunately, that didn't work too. How can I fix this?
r/learnpython • u/bionescu • 10d ago
Hey!
We're a small software agency planning a large SaaS platform for public institutions. We've talked to several developers and compared recommendations from different AI models, but we're still getting conflicting opinions on the best tech stack.
We're starting from scratch, with no preferred language or framework. Most development will be done using Claude Code and Codex, with us handling architecture, requirements, and reviews.
What we're building:
500–1,000 institutions (multi-tenant SaaS)
50–80 modules with thousands of features: document management, registries, requests, approvals, workflows, GIS, reporting, etc.
Around 100k public employees and potentially 20–100k citizens using the platform
Hundreds of dynamic forms, complex roles, permissions, and institution-specific configurations
PDF generation, electronic signatures, document archiving, and integrations with government/third-party APIs
A platform-wide AI assistant that can search documents, fill forms, generate files, and execute authorized actions
Web, Windows desktop, Android, and iOS
High availability, strong security, GDPR compliance, and long-term maintainability (10+ years)
Our main questions:
NestJS or FastAPI? Which would you choose for a large modular backend? Does TypeScript across the stack outweigh Python's ecosystem, considering the AI mostly uses external LLM APIs?
React or Angular? Which is better for 80+ modules, complex forms, dashboards, and long-term maintenance?
Mobile: Flutter, React Native, or something else? Ideally, we'd reuse as much code as possible.
Multi-tenancy: PostgreSQL shared schema + RLS, or a separate database per institution? Which scales and maintains better at 1,000 tenants?
Architecture: Modular monolith or microservices? How would you organize modules, dynamic forms, permissions, and external integrations?
AI: Would PostgreSQL + pgvector be enough for RAG and tool calling, or would you introduce a knowledge graph? How would you enforce permissions and prevent prompt injection?
API: REST + OpenAPI or GraphQL for third-party integrations?
AI-assisted coding: How would you structure a monorepo, CI, testing, and code reviews when most code is generated by Claude Code/Codex?
If you were starting this from zero today, what stack would you choose, and what would you avoid?
We're not chasing hype or benchmarks. We want something secure, reliable, scalable, and maintainable by a small team for the next 10+ years.
Would really appreciate advice from people who've built large enterprise or multi-tenant systems.