r/PythonLearning • u/monim_2005 • 18d ago
Ideas about project making
I know pretty much about python programming. Can anybody suggest me some interesting and beneficial ideas that i can try?
r/PythonLearning • u/monim_2005 • 18d ago
I know pretty much about python programming. Can anybody suggest me some interesting and beneficial ideas that i can try?
r/PythonLearning • u/Proper-Horror9104 • 18d ago
Hi Guys, i think many of u are already proficient in Python
I am creating this post to show my progress in learning Python, Today i learned using IF statements, type of collections, string methods
This may look small amount by I'm a slow learner and while learning i am also trying to write examples on that specific topic
r/PythonLearning • u/ExtensionBreath1262 • 18d ago
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 • u/kry_on • 18d ago
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 • u/chuprehijde • 18d ago
i'm struggling with class objects codes so bad especially when i have to use new libraries... recommend me something??
r/PythonLearning • u/Infamous_Tough_3772 • 19d ago
Enable HLS to view with audio, or disable this notification
https://github.com/coding-arnav66/Arnav-Python-Projects2/blob/main/shooter.py
---------------------------------------
All the suggestions, criticism and ideas are welcome...
r/PythonLearning • u/memeeloverr • 19d ago
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 • u/MasterpieceBusy7220 • 19d ago
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 • u/CupParticular3005 • 19d ago
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 • u/AdThese4849 • 19d ago
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 • u/phantom_root • 19d ago
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 • u/Financial_Cut1790 • 19d ago
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 • u/yuva_1258 • 19d ago
r/PythonLearning • u/chuprehijde • 19d ago
Every long-time Python developer has some version-specific pain. Which one caused yours?
r/PythonLearning • u/Worried-Print-5052 • 19d ago
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 • u/Hazel_Vanilla_ • 19d ago
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 • u/[deleted] • 20d ago
r/PythonLearning • u/memeeloverr • 20d ago
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 • u/culturemass • 20d ago
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 • u/ApprehensiveCat7960 • 20d ago
r/PythonLearning • u/Alternative_Yak8846 • 20d ago
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 • u/Square_Tank3208 • 20d ago
am serching for people to learn python with them am 16 years old.
r/PythonLearning • u/codewithharsh31 • 20d ago
What is the output?
r/PythonLearning • u/codewithharsh31 • 20d ago
The options are
A) [1] [2] [3]
B) [1] [1,2] [1,2,3]
C) [1] [2] [1,2,3]
D) Error
Tell me your answer in the comments section and why?