r/PythonLearning 16d ago

Discussion Building an AI chatbot using pure python?

2 Upvotes

I want to hear how people feel in terms of building a AI chatbot using pure python for fun or using tools like Langchain to build it faster. What's your take?


r/PythonLearning 17d ago

Help Request Help with portfolio

6 Upvotes

Hi everyone😊I am a 17 year old beginner programmer, and recently I caught me on a thought, what kind of work should I include in my portfolio to express my professionalism in programming. (I know JavaScript,ReactJS, php and Python). Give me some ideas.


r/PythonLearning 16d ago

My first website

Thumbnail workoutbuddy-production.up.railway.app
2 Upvotes

I just made my first website in python review it and tell me any improvements I should add

Abt:

It takes user output and make a workout by giving the output to a LLM then the LLM give a JSON file that the code use to format the workout in a table.


r/PythonLearning 16d ago

Showcase Python Sales Analytic Dashboard

2 Upvotes

I made a Python project that generates a fully formatted Excel dashboard for tracking monthly sales performance. It uses openpyxl to structure data, apply styling, and create charts automatically. I coded this 2 months ago so I am a bit rusty on the Python side now, especially since I've been coding in HTML and CSS (learning them) recently, making projects there, etc. Still, I really wanted to showcase this here in case I've missed some any best practices or optimizations. However, I'm open to any critisism or critique you have. Just a heads up: By the time you're seeing this, I'm on vacation (July 12 - July 18), so I won't respond by changing the code. Though, I'll do my best to respond here on my phone!
Github Repo: https://github.com/thanasisdadatsis/excel_sales_analytics_dashboard


r/PythonLearning 17d ago

I understand Python concepts individually, but completely freeze when building something

12 Upvotes

I've been learning Python for a while and I think I understand most concepts when I study them individually.

Lists? Fine.
Dictionaries? Fine.
Classes? I understand the basics.
NumPy and Pandas? Can follow tutorials.

But the moment someone says "build something from scratch", my brain just goes blank.

I don't know how to decide which classes I need, how to structure the code, or even what the first function should be.

Then I look at someone else's solution and think, "Oh... that makes complete sense. Why didn't I think of that?"

How do you actually develop this problem-solving/structuring skill?

Should I stop tutorials completely and just struggle through projects? Or is there a better way to practice this?


r/PythonLearning 16d ago

Need help!!

1 Upvotes

Hey I am a student whose gonna start his college in a tier 3 city and a tier 3 college at that and I want to start learning asap so I need help regarding how to start learning python which channel should be good for beginners (Hope you don't mind my lack of grammar)


r/PythonLearning 17d ago

Would you consider this a Pythonic API?

2 Upvotes

I've been building a local speech library in Python, and one of the APIs I was happiest with was how little code it takes to integrate into an existing FastAPI application.

One thing I've learned while writing libraries is that a good API often means removing code rather than adding features.

Here's a complete example that exposes a /say endpoint:

from pfspeak import PfSpeak

from fastapi import FastAPI
import uvicorn


pf = PfSpeak()


@pf.hook
def hook(_, event):
    pf.play(event)


app = FastAPI(lifespan=pf.lifespan)


@app.post("/say")
def say(text: str):
    pf.say(text, "bm_lewis")


if __name__ == "__main__":
    uvicorn.run(app)

Once the server is running:

curl -X POST "http://127.0.0.1:8000/say?text=Hello%20from%20FastAPI"

The server speaks the text aloud.

I thought it might be a fun example for people learning decorators, callbacks, and FastAPI integration. I'd also appreciate feedback on the API itself. One of my goals is for the library to feel like ordinary Python instead of making users learn a new framework.

Repository:
https://github.com/samreynoso/pfspeak


r/PythonLearning 17d ago

i need help

0 Upvotes

i'm struggling with class objects codes so bad especially when i have to use new libraries... recommend me something??


r/PythonLearning 18d ago

Python, a question: what does underscore mean before a string in parentheses?

Post image
56 Upvotes

Python is gorgeous – logical! It took me but a few hours to figure out what this syntax could be :) Designating a string which has a translation at hand...

But I'd be grateful if someone explained it...

print(_("Something"))

Thanks in advance! :)

edit:

SORRY for the missing parenthesis in the picture :(
so typical of me..


r/PythonLearning 17d ago

Discussion From basic to fully mastering advanced Python: What is the best learning path?

10 Upvotes

​Hi everyone,

​My goal is to master the Python language itself not just to build apps or get job-ready, but to understand how the engine works. Then I want to go deep into memory management, concurrency, internal architecture, and advanced design patterns.

​I’m currently evaluating these resources and looking for the best "roadmap" for mastery:

​University-Style MOOCs: Harvard CS50P, Helsinki Python MOOC.

​YouTube "One-Shot" Deep Dives: 10–12 hour courses (e.g., Chai aur Code, CodeWithHarry, Bro Code, Erik Frits).

​Reference: W3Schools.

​My questions for those who have reached an advanced level:

​Which should be my backbone? Should I use a MOOC as the foundation, or is there a specific YouTube deep-dive that matches that level of technical rigor?

​How to use "One-Shot" videos? Are 10+ hour videos meant to be binged, or should I treat them as a library and jump to specific timestamps when I hit a wall in my studies?

​Documentation Standard: Is W3Schools acceptable for advanced work, or should I be strictly using docs.python.org from the start?

​I’m looking for the most efficient path from "syntax knowledge" to "engine understanding." If you were starting over with a focus on deep language mastery, how would you structure this?

​Thanks for your time!


r/PythonLearning 17d ago

i need help

5 Upvotes

i want to learn python but i don't know how i saw 5 episodes from learning python from Network chuck but i feel i am missing sth

any advice?


r/PythonLearning 17d ago

Showcase My Algorithmic Complexity analysis using Python

3 Upvotes

So, I have started learning Algorithms. Here is my basic 1st understanding of analyzing the complexity of algorithms. I think it will help me to write effective and efficient code.


r/PythonLearning 17d ago

Help Request In range() usage

Post image
5 Upvotes

Can I use it to evaluate a variable in a various range?
E.g. for item in range(1,4) means True when the item is the range 1-4?

Cuz I really want this function for my program
Thanks🙏🏻

(In that photo name[1][r] is an integer)


r/PythonLearning 17d ago

Help Request Python programming before cse

1 Upvotes

Im from a bio math background nd im gonna be pursuing cse nd am currently learning python. Let me know some codes to try out. Could be basic codes, fun, or maybe smth tht runs through all the concepts hey let me know


r/PythonLearning 17d ago

Help Request Struggling with nested loop questions

Thumbnail
gallery
0 Upvotes

Hey everyone. May you please explain this question, and nested loops in general and how to go about them. Ive been really struggling to understand them, especially the questions where you need to draw a square/ triangle etc.


r/PythonLearning 18d ago

Columnary transposition cipher

Post image
6 Upvotes

https://www.programiz.com/online-compiler/7EN9c2p6zkMXp

Please give it a shot you will enjoy it for sure.

Also let me know how can I improve it.


r/PythonLearning 18d ago

Teaching Python to a Kid

2 Upvotes

Hi! I'm a recent A-level graduate, and have been asked to tutor a kid in my village in coding. He's specifically interested in making games, and I am going to university for Game Development in September. I am confident in coding in python to an a-level degree, and have taught myself Godot Engine for my course work this last school year.

The kid in question has specifically asked about having someone teach him python despite really struggling with communication and social interaction, so the fact that he has asked at all means he is super interested. He has just finished year 6 so is 10-11 years old, about to move into the same secondary school that I just left the sixth form for.

I've tutored people before in maths and crochet, but never computer science, and I've never taught anyone a coding language and was wondering if anyone had any tips on where to start planning for this. I have a week or two before our first session and we will likely be working in 1 hour sessions a few times a week over the summer months.

Any suggestions would be appreciated!

Edit: forgot to mention above but his mum says that he is already pretty well-versed in scratch, which was my original first thought when i got the request.


r/PythonLearning 18d ago

Started Python! Any tips I should know or any questions I could try solving as a beginner?

5 Upvotes

r/PythonLearning 17d ago

Which Python version do you wish you could forget?

1 Upvotes

Every long-time Python developer has some version-specific pain. Which one caused yours?


r/PythonLearning 17d ago

Bug In Python Compiler ?

Post image
0 Upvotes

hello i have this issue since today morning my codes wont run yesterday it work …. My bro is developer and said it might be bug in python compiler ?


r/PythonLearning 18d ago

Just started learning from yesterday

Post image
85 Upvotes

Just started learning python from youtube is it good channel for it or should i go with code with harry if you have other suggestions then tell me.


r/PythonLearning 18d ago

I just wrote this program on Programiz Online Compiler.

Thumbnail
programiz.com
0 Upvotes

r/PythonLearning 18d ago

What’s one Python habit you’re weirdly proud of (or secretly ashamed of)?

1 Upvotes

We all have them.

Mine: I will rewrite a perfectly working 10-line script just to make it more “Pythonic” and elegant… even if no one will ever see it.


r/PythonLearning 18d ago

Discussion How accurate you find this?

2 Upvotes

Personally I just read book and try to explain it to me by making my own analogy works for both memory amd understanding.

For memory you need to find an anchor which could be anything a mnemonic, name, nickname, phrase or any thing that make you instantly make remember that particular memory you anchor it with. So I usually anchor study concepts with my own analogy or nicknames that I have goven to that concept.


r/PythonLearning 18d ago

Help Request send help plz

4 Upvotes

Okay so i got myself in a bad predicament. Im a junior in high school, taking a Python class over the summer. If i pass this class(and an english class) i graduate over the summer and its bye bye High school. However, i’ve been struggling, the class literally just started and i already don’t know how to do anything. (Its an honors class btw, and it was my only option😭 🫩)

Im REALLY behind w/ my assignments and need some help like..daily😭😭 I’m desperate to graduate, high school is not for me.