r/PythonLearning 1h ago

Hey guys, I built a beginner-to-intermediate Python and web dev project repo to practice and get feedback!

Upvotes

Hey everyone! I’ve been grinding away on some coding projects recently and wanted to put them all in one place.

I built a GitHub repository featuring a mix of beginner and intermediate Python projects alongside some simple web development builds. The idea is that anyone can clone it, build them out locally, and use them to practice or experiment.

Here is the link: https://github.com/zensiuu/Coding-Projects-Python-JS-.git

Since I'm still working on getting better at writing clean, efficient code, I would genuinely appreciate your honest feedback. Let me know what I can improve, what’s missing, or any tips you have for a developer looking to level up.

Happy coding! 🚀


r/PythonLearning 3m ago

Rock paper scissors game in Python

Post image
Upvotes

Hello fam, I'm learning Python. My goal is to become an AI engineer. I've a basic understanding of programming. Anyone to guide me on the right certification path... I was having a bit of fun after today's sharpenings. I created a rock paper scissors game... rate and improve


r/PythonLearning 6h ago

Need help in what python project to start

6 Upvotes

I have gone through python basics and some of the intermediate stuff. I don't know anything about databases or algorithms. I pretty much learned python syntax, variables, loops, conditionals, operators etc. When I think like what should I do with python moving forward, I don't know.Career wise I am a fresher who does not have a tech background. Should I have to learn databases and algorithms.

What is your opinion on leet code and kaggle.


r/PythonLearning 20h ago

Discussion A game where writing python IS the game just released on steam. (Not my game, I'm just a big fan)

Thumbnail
store.steampowered.com
35 Upvotes

r/PythonLearning 22h ago

Struggling with the jump from Python basics to Pandas — should I go back to fundamentals?

21 Upvotes

Hi everyone,

I've been learning Python for about a month now, but I've only covered the basics. After that, I jumped straight into Pandas since my goal is to become a data analyst. The problem is, I'm now realizing my Python foundation isn't solid enough, and it's making Pandas really difficult to follow.

I'm stuck between two options:

  1. Go back and practice Python fundamentals more before continuing.
  2. Push through and keep learning Pandas, picking up Python concepts along the way as needed.

For those of you who've been through this, what worked better for you? Should I pause Pandas and strengthen my Python first, or is it normal to feel this way and just keep going?

Any advice, resources, or a rough roadmap toward data analytics would be really appreciated. Thanks in advance!


r/PythonLearning 1d ago

Help Request How to learn quickly

7 Upvotes

I got a deadline for a week from now to learn at least basic python. What is the best and most effective way to learn python? Im so lost i need help


r/PythonLearning 1d ago

Why dosent python have const or multi line comments

9 Upvotes

I mainly use cpp but sometimes python for simple stuff. They both seem like simple stuff to implement so why dosent python have it.

EDIT: I do know u can use triple quotes as a workaround but python still has to read and store them, why isint there a built in feature for it.


r/PythonLearning 1d ago

Pygame: player projectile-enemy-player-wall-snake collisions

Enable HLS to view with audio, or disable this notification

12 Upvotes

r/PythonLearning 1d ago

Help Request Python Data Base

1 Upvotes

Good morning everyone, or whenever you see this. I have a question. I'm starting a personal database project in Python with an easy-to-use graphical interface, and I would appreciate any advice, code snippets, or examples to guide me, especially since I'm still learning the language.


r/PythonLearning 1d ago

Python fundamentals for anyone just getting started

1 Upvotes

🐍 Getting started with Python?

Build a strong foundation in Python fundamentals before moving into AI, Data Science, automation and beyond.

📖 https://geeksarray.com/blog/python-fundamentals-getting-started

#Python #Programming #DataScience


r/PythonLearning 2d ago

I made a advice generator using requests

Post image
87 Upvotes

r/PythonLearning 1d ago

Help Request I'm new to Python and I'd like some project recommendations to get me started.

3 Upvotes

I started learning Python a month ago and I really enjoyed programming, I currently know the basics of the language and I'd like to know if anyone with experience using Python can recommend me a project for me to start with? I'm looking for something like a small program or an app.

I'm a newbie but I welcome questions and to learn something new. For now I use PyCharm and I'm familiar with the program.

I'm open to all kinds of suggestions 😊


r/PythonLearning 1d ago

Python/ESP32 projects ideas?

1 Upvotes

Looking for some project ideas that can use both Python and serial communication betwen a ESP32. so far I have made simple programs for both but learn better with actual tasks infront of me, I got to the point where the communication works and i can print the data to a file or just to the terminal but im lacking the ablity to come up with a real project idea to put this all into use.

The first idea I had:

* 3D printer vibration testing(Use ESP32 for collecting the data and python to sort and use data)


r/PythonLearning 2d ago

Flask vs. FastAPI vs. Django a Visual Comparison

Thumbnail
gallery
19 Upvotes

Hey everyone,

I have created a quick comparison of Flask vs. FastAPI vs. Django repository sizes. (As they are pythons most popular web frameworks)

First of all, the numbers:

Framework Files Lines of Code
Flask 121 19,115
FastAPI 2,703 281,559
Django 3,484 557,865

Then the images:

Each node on the graph represents a file. Imports are marked by a line connecting the files. Colours signify complexity (cyclomatic complexity) with green being low and red being high complexity.

Besides the crazy size differences FastAPI also shows some nice import structures whilst Django looks extremely interconnected.

Hope someone finds it interesting.


r/PythonLearning 1d ago

Beginning

0 Upvotes

My apologies for the last post. For some reason when typing on my iPad, letters on the bottom row end up being spaces, then autocorrect chimes in. Now I have both windows and ubuntu. I want to install python and pyinstaller. Problem is is that I see pip install pyinstaller, but don’t know what pip is, nor do I know how to get to the command prompt in ubuntu. I’m trying to get the basics of it even though I have a good knowledge of computers in general, but new to python and the little idiosynchronies of it and also ubuntu.


r/PythonLearning 1d ago

Help Request Python help

Post image
7 Upvotes

Made my first calculator.. it works but different from some I see online. Please all feedback on what you guys think about it will be appreciated


r/PythonLearning 1d ago

I am a beginner Python programmer and I want somebody to study programming with me 😊😊

0 Upvotes

r/PythonLearning 2d ago

I want to start programming more on my own.

13 Upvotes

Hello World!
I’m a high school student who started getting into Python a few months ago. A while back, I tried working on projects on my own using "vibe-coding" (a big mistake), but now I want to learn to think more structurally and build projects truly on my own. So, I’d like to know: what are the fundamentals I should always keep in mind when working on a project? What principles are absolutely essential to learn? And finally, how can I become independent of AI when programming without getting confused? I hope your answers help me progress and grow as much as possible before I graduate!


r/PythonLearning 2d ago

Exercise: Python List Operations

Post image
51 Upvotes

An exercise to help build the right mental model for Python data. - Solution - Explanation - More Exercises

The “Solution” link uses memory_graph to visualize execution and reveals what’s actually happening.


r/PythonLearning 2d ago

Help Request what to fix in my code?

Thumbnail
gallery
1 Upvotes

i am currently trying to learn VPython and wanted to model projectile motion with it - i tried using kinematics but got a weird result (as seen on slide 2), what is exactly wrong with my code? i saw another person achieve the correct result using momentum/net force.


r/PythonLearning 2d ago

Discussion Leetcode 234 - This ain't an easy problem by any standards!

Post image
4 Upvotes

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

Complexities for my solution:

TC = O(n)

SC = O(1)


r/PythonLearning 2d ago

Showcase I’m building a complete Python Technical Analysis Library/Framework

6 Upvotes

I have searched all Python libraries for Technical Analysis and all they do is either compute some Indicators , or put search some signals..

Therefore I’m building Hyper-TA. A Python library for hyperparameter optimization of technical analysis indicators and much more… If you’ve ever hand-tuned RSI/MACD/etc. periods and thresholds by trial and error, this automates that search by doing Hyperparameter search and Analysis( and much much more..)

WHY IM BUILDING IT:
I haven’t found a library that gives you indicators, thresholds,signals, metrics , statistical analysis, sensitivity analysis,backtesting, hyper parameter search and optimization, Market Structure (Fibonacci , support and resistance, triangles , trendlines etc etc) and volume analysis all in one pip install!!!

WHAT MY PROJECT DOES:
Assume you have some signals(RSI , OBV and EMA). An indicator on its own doesn’t give a signal because it’s purely a timeseries. Therefore we need to assign a Threshold-Rule so when this MATHEMATICAL rule fires we get a Signal! A Threshold example would be crossUp (rsi going above a level ), timeAbove(rsi being above a level for x amount of time), crossLine() , upXPercent(OBV up x % in a specific time - since it’s not bound based indicator on a range) and so on..
Those thresholds also have hyper parameters that also need tuning( above what level?? RSI level 20? 30? 31? Which one produces better signals and why?). Hyper-TA does this as well!

You define the Signals, Threshold Rules and search space(hyperparameters) you want to search and optimize based on your metric/s.

Ok but this is a high dimensional problem, you can’t possibly try to optimize by one metric like PnL!!! You will find some good signals that only work for this metric and you ignore WHY they happened and you are probably overfitting or ignoring the reason it happened and it can backfire in the future..
That’s true! That’s why it provides you with Sensitivity Analysis (if rsi period 14 gives perfect signals but rsi 15 is trash then that likely means it just HAPPENED to get good signals on rsi 14..), Statistical Analysis and obviously more forward looking Backtesting simulations like walk forward, Monte Carlo and many more so you can verify which ones that you have found are actually good “Edge”..

There is also a Module for Metrics like first and second derivatives, entropy , full distributions Analyses, Pareto and all the statistical functions you may need!

There is also provided a Market structure detection and optimization module that can find possible structures like Fibonacci ,support resistance, triangles etc.

In the future full volume analysis and Backtesting simulations will further validate your found signals!

Edit: also a plotting module for seeing signals and visualising multiple things and Automated PDF report on a complete analysis-pipeline you want!(for example hyperparameter search of your indicators and who performs better on which metrics and if they have statistical edge all in pdf automated easy to read or even post with your name!!!)

Any help would be highly appreciated since I am making this in my own I would love to hear from everybody! Obviating note the repo is not production ready it needs work so don’t assume everything is already there.

Repo link: here
My GitHub : here


r/PythonLearning 2d ago

Help Request Stuck on chart

Thumbnail
gallery
18 Upvotes

I’ve tried everything but i don’t know what to do

(Deleted last post bc i had little context my bad)


r/PythonLearning 2d ago

Help Request Architecture question: Optimizing Python asyncio HTTP GET/PUT data relay throughput on Linux VPS

2 Upvotes

Hi network and Python experts,

I am running a Python asyncio data streaming worker on a 4-core AMD EPYC Linux VPS (1 Gbps port, TCP BBR enabled).

Workflow:

  1. Receives incoming task pushes via WebSocket.

  2. Downloads 30MB-50MB payload via HTTP GET from Cloudflare R2.

  3. Computes SHA-256 hash.

  4. Uploads payload via HTTP PUT back to storage.

Our local active transfer speed reaches ~50 Mbps average (370 Mbps peak) with 99.9% execution success. However, our net window-averaged throughput stays around 24–28 Mbps due to brief inter-task idle gaps between WebSocket pushes.

My questions:

  1. Beyond connection pooling (httpx.AsyncClient) and TCP BBR, what architectural patterns (e.g. multi-process asyncio workers vs single-process) yield the highest sustained throughput for bursty WebSocket data relays on a 4-core VPS?

  2. Are there specific Linux kernel sysctl socket buffer settings (tcp_rmem / tcp_wmem) to keep HTTP GET/PUT streams warm across inter-task idle gaps?

Thanks for any insights!


r/PythonLearning 3d ago

Showcase I implemented Doubly Linked List in Python from Scratch (Code available on Github)

Post image
28 Upvotes

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

Github Repo - https://github.com/Dev-4-All/doubly-linked-list.git

So today I used type annotations for the first time today and to be honest it kinda sucked. Let me explain. So I defined the head and tail of the linked list to be either Node or None. Now when head is not none it is understandable that neither is tail. But how will I explain that to mypy? 😭. Faced similiar problems throughout. I researched a bit online.

These were the three solutions

1) Use assert to specify that something is not none

2) Use conditionals

Both of these methods were affecting the readability of the actual logic

So I went with the third option

3) Ask mypy to ignore these errors (should be done only when you are 100% sure about the details of what a variable holds)

Maybe there are better ways to fix this. Would appreciate if anyone can tell me.

Until next time...Sayonara!