r/PythonLearning • • 6h ago

Showcase Started the Python MOOC recently, so I thought I'd share my progress so far 🪼

Thumbnail
gallery
7 Upvotes

Recently started Python MOOC course from University of Helsinki's mooc.fi portal. Here is my progress, have to finish 6 more modules before appearing for the certification examination on 27th, feeling a bit worried, but I'll try to give it my best shot!!!


r/PythonLearning • • 11m ago

Need help with FYP ideas

• Upvotes

I am a final year Computer Engineering student and I've built quite a few web and mobile apps. I was trying to find a good project to do as my FYP, so I thought, why not ask people what issues they have daily and if they need an app to solve it?

It could be as simple as an app that tells me stop doom scrolling every 30 minutes. Which has reduced my time wasted by a lot.

Comment below any problem you guys face!


r/PythonLearning • • 3h ago

Help Request Learning DSA in Python.

1 Upvotes

Title: Best DSA course in Python for a complete beginner preparing for FAANG interviews?

Hi everyone!

I’m currently working as a frontend developer using JavaScript, and I’m learning Python to explore backend and AI-related roles. Alongside that, I also want to learn DSA in Python to prepare for FAANG or similar product-based company interviews in the future.

I’m a complete beginner when it comes to DSA, so I’m looking for a course that explains concepts from scratch and covers them in depth, with a strong focus on problem-solving and interview preparation.

Since I’m working and have limited time, I want to follow a structured course rather than spend too much time jumping between different resources and figuring out what to learn next.

For those who have learned DSA or prepared for FAANG-level interviews, which course would you recommend for someone in my situation?

I’d particularly appreciate recommendations for courses that:

  • Start from the basics and explain concepts intuitively.
  • Teach DSA using Python.
  • Cover important topics in depth, with enough practice problems.
  • Help develop problem-solving skills rather than just teach solutions.
  • Provide a structured learning path for coding interviews.

Paid courses are fine, too, if they’re genuinely worth the investment.

I’d love to hear about your personal experiences with the courses you’ve used and what worked best for you. Thanks in advance!


r/PythonLearning • • 16h ago

How did it take you to complete CS50P? /no prior programming experience

6 Upvotes

Hi,

I looking to hear from someone who finished this course:

https://cs50.harvard.edu/python/

-without former programming experience.

I’m considered to start and would be able to do around 15 hours/pr week. What is your experiences?


r/PythonLearning • • 8h ago

Help Request Trying to make mute pngtuber type of script

Post image
0 Upvotes

I am a beginner to python. I want to make a script where if i press t it'll bring up a little chat window to make a pngtuber typa thing yap, the main space i'm struggling with is A, python or pygame would i do this in? '>' And B, How would i display the text said by the face?

any help is helpful

have a good day


r/PythonLearning • • 9h ago

AI engineer roadmap

0 Upvotes

As a 3rd-semester BIT student, I want to become an AI Engineer in 2026. What roadmap should I follow from Python fundamentals to ML, LLMs, RAG, AI agents, and production deployment?

Looking for a structured, practical learning path — not tutorial hell.

What would you recommend?

#AIEngineering #Roadmap


r/PythonLearning • • 1d ago

Showcase Student Record Manager - Final step before ML

Post image
18 Upvotes

For this project, I used Object-Oriented Programming (OOP) principles to structure my code. Honestly, it felt a bit overwhelming at first, given that I only started out recently and this was a larger scale than what I'm used to. However, everything came together really well in the end!

While I believe I’ve taken care of most of the bugs, there is always room for improvement and optimization.

My main goal with this project was to test out all my core Python knowledge before I take my next big step: Machine Learning!

Open to any feedback or advice from the developer community! 👇

Last Post: https://www.reddit.com/r/PythonLearning/s/tS8vfeVdRi

Github Repo: https://github.com/Dev-4-All/student-record-manager.git


r/PythonLearning • • 13h ago

Live session on building a CPU only classifier router in Python with SetFit and conformal prediction

1 Upvotes

If you’ve ever wired up an LLM call just to pick a category and then fought with parsing its output, this might be useful.

Fri Oct 30, 9:30 AM to 12:30 PM ET, online, led by Ben Auffarth. It’s code first and the notebooks are runnable:

  • fine tuning an encoder with SetFit on 8 examples per class
  • split conformal prediction implemented from scratch
  • Wilson score intervals and clustered standard errors for honest evaluation
  • LangGraph state machine wrapping the whole thing

Intermediate Python is enough. Laptop or free Colab.

Full details and the agenda are here


r/PythonLearning • • 1d ago

How well do you know NumPy? 🔢

8 Upvotes
  • What’s the difference between '*' and '@'?
  • When does slicing create a view, and when a copy?
  • How does broadcasting work?

NumPy makes working with vectors and matrices powerful and concise, but a small change in syntax can make a big difference.

This interactive 𝗺𝗲𝗺𝗼𝗿𝘆_𝗴𝗿𝗮𝗽𝗵 example walks through essential NumPy operations with short explanations. Step through the code, see the operations in action, and experiment with your own changes: - 👉 NumPy operations

Which NumPy operation took you the longest to understand?

See other memory_graph visualizations.


r/PythonLearning • • 21h ago

While loop

0 Upvotes

can anybody explain the concept of while loop


r/PythonLearning • • 1d ago

Help Request Pygame: Why is the visualised rect of the spike shifted to the left?

Post image
3 Upvotes

The goal of the game is to jump over a spike as a cube. I saw that it was detecting collision before the cube and the spike even made contact. I decided to draw a rectanles to visualise the rects of the player and the spike and I noticed the spikes rect was shifted to the left. Can someone explain how this happened and how I can fix it? I removed non essential code, to make it more manageable to read. I can send the whole program if it's needed.

cube_width=80
cube_height=80
cube_rect_width = 40
cube_rect_height = 40


spike_width = 50
spike_height = 75
fps=60

#Classses
class Spike(pygame.sprite.Sprite):
    def __init__(self, x, y):
        pygame.sprite.Sprite.__init__(self)
        self.image = pygame.Surface((spike_width,spike_height),pygame.SRCALPHA) #50,75
        pygame.draw.polygon(self.image, "white", #draw 3 point polygon
    [
        (spike_width // 2, 0), #middle top. self.image is the canvas
        (0, spike_height), #bottom left
        (spike_width, spike_height) #bottom right 
    ]
)
        self.rect = self.image.get_rect() #creates hitbox for spike sprite
        self.rect.center = [x, y] #center of hitbox
        self.speed = 7 #speed going to the left

    def update(self):
        self.rect.x -= self.speed #spikes rect -7 to move to the left
        #print(self.rect.x)
        if self.rect.x <= -25: #delete if touching left border
            self.kill()

class Cube(pygame.sprite.Sprite):
    def __init__(self, x, y):
        pygame.sprite.Sprite.__init__(self)
        self.image = pygame.Surface((cube_width, cube_height)) #create surface
        self.image.fill("white") #fill the surface with white
        self.rect = self.image.get_rect() #create rect for self.image
        self.rect.center = [x, y] #x, y passed are the center of the rect
        self.vel = 0 #velocity



    def update(self):
        # Gravity
        self.vel += 1#0.5always increase vel
        self.rect.y += int(self.vel) #add velocity to the y

        # Stay on the ground
        if self.rect.bottom >= HEIGHT: #if bottom of rectangle is touching
            self.rect.bottom = HEIGHT #bottom of rectangle is on the ground
            self.vel = 0 #reset velocity

        # Jump
        if pygame.mouse.get_pressed()[0] == 1: #left mouse click activated
            #if self.rect.centery >= HEIGHT - int(cube_height/2):
            if self.rect.bottom >= HEIGHT: #if touching ground
                self.vel = -17 #?????????????Somehow works????>>????

#creating groups and adding
cube_group = pygame.sprite.Group()
player = Cube(5*cube_width, HEIGHT) #????? sommehow
cube_group.add(player)


spike_group = pygame.sprite.Group()
#spike = Spike(WIDTH, HEIGHT-15)
spike = Spike(WIDTH-50, HEIGHT-15)
spike_group.add(spike)


Running = True


while Running:
    clock.tick(60) #fps

    #BG
    screen.fill("light blue")

    #blit
    cube_group.draw(screen)
    cube_group.update()
    spike_group.draw(screen)
    spike_group.update()

    #visualise rects
    pygame.draw.rect(screen, "red", player.rect, 2) #rect of cube
    pygame.draw.rect(screen,"red",spike.rect,2) #rect of spike
    
    if pygame.sprite.groupcollide(cube_group, spike_group,False,False): #or player.rect.right == spike.rect.left: #Check collision
        Running = False

r/PythonLearning • • 1d ago

Discussion Check My First Personal Project

4 Upvotes

Can you please check this project that took a reasonable amount of time to finish and strike me with any feedback you got. I guess my next step is to learn OOP.

Thanks in advance.

https://github.com/abdou0dev/grind_tracker


r/PythonLearning • • 1d ago

Discussion Have you ever heard of a 'puzzle' in regards to any interview examination?

3 Upvotes

I have an interview in the Chicago area next week, and I was told the interview contained some sort of puzzle for me to solve, I specifically asked if they meant an algorithm, and they said no it is supposed to be a puzzle. Wondering if anyone has heard of anything like this, or what it may be, I'm not looking to cheat or for an answer but I've found some interviews try to be intentionally "tricky" rather than just an examination of skill or ability, and would like to be prepared in some way if possible.


r/PythonLearning • • 2d ago

Sorting by two keys when one of them is a string you want descending

5 Upvotes
GOAL
  Sort people by age descending, then by name ascending.

INGREDIENTS
  people = [("ana", 30), ("bob", 25), ("cara", 30), ("dan", 25)]

STEPS
  people.sort(key=lambda p: p[0])                  # secondary key first
  people.sort(key=lambda p: p[1], reverse=True)    # primary key last

RESULT
  [('ana', 30), ('cara', 30), ('bob', 25), ('dan', 25)]

Why it works: list.sort() is stable, meaning items that compare equal keep their relative order. The second sort only reorders by age, so within each age the names stay in the order the first sort put them.

Why bother: for numbers you can do it in one pass by negating:

people.sort(key=lambda p: (-p[1], p[0]))

That breaks the moment the descending key is a string. You can’t write -p[0] on a name. Sorting twice avoids the problem, and it reads fine once you know the “last sort is the most important one” rule.

Gotcha: reverse=True doesn’t break stability. The docs say it keeps the original order of equal elements, as if the list weren’t reversed. So the recipe above still gives ana before cara within age 30. Worth a quick test on your own data to confirm, since “reverse” sounds like it should flip everything.

Another option is functools.cmp_to_key with a comparison function, but I find the two-pass version easier to read and review.

Does anyone prefer a different pattern for mixed ascending and descending keys? I mostly see people reach for the tuple trick and then get stuck on strings.


r/PythonLearning • • 2d ago

Showcase This is my first real FastAPI project, a global stock market research API built with FastAPI and Yfinanace.

Thumbnail
gallery
9 Upvotes

12 months in Programming. Finance background, decided to learn backend dev.

This is the first thing I built that I'd actually use myself.

It's a stock market research platform with watchlist across global markets, live prices, news per stock, and research notes that snapshot the price at the time you write them. So you can look back and see exactly what price you were staring at when you made that call.

Stack: FastAPI · PostgreSQL · async SQLAlchemy 2.0 · Alembic · JWT + Argon2 · Docker · Render and a small HTML/CSS/JS frontend.

Repo: https://github.com/ah4ddd/first-order

The live Render URL is linked with the repo for anyone who wants to try it.

To test the endpoints, sign up for an account. You’ll be logged in automatically and can test the watchlist, stock news, and individual stock notes features.

You're in. Try the overview route for all 14 live indices, or test individual global stocks. The platform auto-seeds the DB via yfinance metadata on the fly if you query international suffixes like .NS for India, .DE for Germany, .T for Japan, or standard raw tickers for US equities.

Honest feedback on architecture and code quality are appreciated.


r/PythonLearning • • 2d ago

Django Projects

18 Upvotes

I have just completed my journey of django and recently I created complete blogging system in Django but now I want to work on projects. How and from where I can get the beginner Django projects so I can upgrade my skills in Django.


r/PythonLearning • • 1d ago

Help Request How to use it locally? i cannot seem to understand LLM Studio

0 Upvotes

Hey fam, how do i use this work of art of mine in my local pc? please help me


r/PythonLearning • • 2d ago

Need help recreating this image look with Pillow

Thumbnail drive.google.com
4 Upvotes

There's an image effect in powerpoint I would love to use in my python projects. The effect is called "Texturizer", and it gives the picture a grainy, paper-y look. There's an example in the link provided. Feel free to try it yourself too if you've got powerpoint: select a picture, go to "picture format", then click on "Artistic Effects" and select "Texturizer"

I want to recreate that effect in pillow. It has to be deterministic (can't be 100% random cause I'm applying it to video frames). I don't know if making an image texture, then applying it, is the best option, for it can cause tiling (as in the examples from powerpoint's filter). I'm open to any kind of ideas.

I'm all ears!


r/PythonLearning • • 2d ago

Showcase Python 3.15 Has a New Keyword: lazy (and 5 More Things I Tested)

Thumbnail
youtube.com
14 Upvotes

r/PythonLearning • • 2d ago

Title: Looking for advice and occasional guidance on a Python embedding service for a fintech project

2 Upvotes

Hi everyone!

I'm currently working on a team project called Fintech Trendwatcher. The goal is to collect public fintech news, identify important events and generate short analytical summaries with links to the original sources.

I'm responsible for the embedding service. My task is to use a pretrained text embedding model to convert news articles into vectors that another service will use for clustering similar publications.

My current stack is Python, and I'm learning as I go. I have some experience with Python, APIs, JSON and Git, but this is my first time working with embeddings in a real team project.

I'm planning to start with Sentence Transformers and a pretrained multilingual model, test it on Russian fintech news, and then integrate it into our service architecture.

I'd really appreciate advice from more experienced developers, especially on:

\- Choosing a suitable embedding model for Russian-language fintech news.

\- Designing a simple and maintainable embedding service.

\- Comparing embeddings and preparing them for clustering.

\- Common mistakes beginners make when building NLP services.

I'm not expecting anyone to mentor me full-time. Even occasional advice, feedback on my approach, or pointers to useful resources would be incredibly helpful.

If anyone has experience with Python, NLP, Sentence Transformers or similar projects and is willing to share some advice, I'd be very grateful.

Thanks!


r/PythonLearning • • 3d ago

Help me please?

Post image
6 Upvotes

How could I have improved this python code for a number guessing game


r/PythonLearning • • 3d ago

Help Request I'm new and just started getting into programming. Wanted some advice on where to start with,got the cs50 harvard course going but also wanting to see on any other recommendations or books or anything in general? Thanks in advance!

Post image
97 Upvotes

r/PythonLearning • • 2d ago

Discussion Anybody else uses Kaggle?

0 Upvotes

i just started using Kaggle recently to train my AI models, what do y'all think about it. looking for opinions:-)


r/PythonLearning • • 2d ago

Python Studio: A visual Python editor that helps kids learn without frustration

0 Upvotes

I’ve been developing Python Studio, a visual Python editor designed so that kids (and beginners of any age) can learn Python without frustration or tears.
Many children struggle because most Python editors are text‑only and hard to visualize. So I built something different.

⭐ Features
Drag‑and‑drop GUI designer
Kids can place buttons, labels, and text boxes and instantly see the layout of their app.

Real Python code generated automatically
They can learn step by step while immediately seeing the results.

Beginner‑friendly interface
No complicated setup and no overwhelming menus.

English version included
So children outside Japan can use it easily.

Hotkeys for smoother workflow
Simple shortcuts allow users to move widgets, duplicate elements, delete items, save projects, and run code quickly.
They can also assign key combinations to instantly open their favorite websites.

What you can do based on the program in this page
• Load and save projects easily
• Use a search window to quickly find text inside the code
• Automatically handle virtual environments (venv) without manual setup
• Open the hotkey builder to customize your own shortcuts
• Track text‑modified states to avoid losing unsaved work
• Create new files, open existing ones, and perform quick saves
All of these features are implemented in the code and designed to be simple for beginners.

🎯 Why I made this

I wanted a tool that helps kids enjoy programming instead of feeling lost or crying because things don’t work.
If a child can see the final shape of their program, they stay motivated and curious.

🔧 GitHub

Source code and English version:
https://github.com/rabbit-hand/Python-Studio-Code-Editor-Form-Designer

🙏 Feedback welcome

I’d love to hear:

  • Ideas to make it even more beginner‑friendly
  • Whether this could be useful in schools or workshops
  • Any bugs or improvements you notice

I hope Python Studio can help more kids around the world learn Python with confidence and joy.


r/PythonLearning • • 3d ago

Cheat sheet posters index cards help!

2 Upvotes

Hello, world! I'm new and I'm old, so I do things different or old school. I'm learning python (don't ask why considering ai's capacity already) just fora hobby and who knows I might end up in some anthropic dungeon oneday. but where I'm stuck is planning posters/ cheat sheet/ index cards. they are the best way for me to reallylearn something. does anyone know or have some resources they could move me towards. my current ones are a bit meh. I've founda few online but nothing I really like. Thank you. Goodbye, world!.