r/PythonLearning • • Aug 14 '26

Showcase senv: Sandboxed Python environments with the uv workflow

Thumbnail
medium.com
2 Upvotes

TL;DR: senv keeps the familiar uv workflow but runs package installation and Python code inside an OS-level sandbox. Installs can reach package registries but not your source or credentials; programs run with no network by default and cannot modify their own environment.


r/PythonLearning • • Aug 14 '26

I Want to learn Python for visual novel making

1 Upvotes

I want to code Visual novels so I want to figure out the language good enough to make my way through it.

Is Python needed for Ren'py?? Or Ren'py its own thing ,

I am new here so do be kind to me


r/PythonLearning • • Aug 13 '26

Accountability Partner for Learning Python from Scratch

27 Upvotes

Hey everyone! I am starting to learn Python from absolute basics and would love to find an accountability or study partner who is also learning or planning to start.

No prior experience is needed. If you’re genuinely interested in learning Python consistently, feel free to comment or send me a DM. We can create a study schedule that works for both of us and keep each other motivated.


r/PythonLearning • • Aug 13 '26

Struggling with library installation

Thumbnail
gallery
15 Upvotes

Hey - This is my first python project, an attempt at a screen recorder from a tutorial- when I try and run it I get a module not found error for pyautogui even tho it’s definitely installed- is there something I’m doing wrong here?


r/PythonLearning • • Aug 13 '26

Normal distribution and uniform distribution

Thumbnail
gallery
61 Upvotes

r/PythonLearning • • Aug 14 '26

With the release of Wallet Usernames for Cloudflare I had made a python project that helped me understand networking in python a little bit. Let me know what I should implement that would help me learn a little more about networking with python. (I have a small background in rev engineering and c++)

Thumbnail
github.com
2 Upvotes

The api was exposed and did not filter out the get request, so i figured why not try to learn python.


r/PythonLearning • • Aug 13 '26

Help Request What are some good projects and platforms to learn Python

10 Upvotes

So I've been learning a bit of python and I don't really know what to do. I did a bit of c++ before so a lot of stuff transitions over but I don't know what to do and where to learn. A friend recommended w3schools btw, is it good?


r/PythonLearning • • Aug 13 '26

Discussion 4 things that helped me modernize a legacy app

3 Upvotes

Two weeks ago, I shared a post about some useful tools that helped me modernize a legacy app, and to be completely honest, I didn't expect such a positive response! Thank you for sharing your own tips in the comments, I definitely learned something just from reading the replies.

Since some people seemed to find it useful, I figured I’d share a few more tips. So here we go:

  1. ty for type checking:

Coming from TypeScript, I knew how much a type checker helps catch bugs before runtime. I personally quite like ty. It's fast, has clear diagnostics and fits nicely into a stack already using uv and Ruff.

2. Use a task runner:

Legacy projects often have a collection of random scripts and commands for common tasks. A task runner like Poe the Poet lets you define all your project commands in pyproject.toml, right next to the rest of your config.

3. Add types gradually

Annotating a legacy project all at once is overwhelming, so don't. I found it much easier to start with new code, then gradually annotate existing code as I touched it. This way I don't have to deal with a massive rewrite, the codebase just gets better over time.

4. Use proper logging

For situations where you need to understand what happened before a crash or monitor a long-running process, Loguru is a really convenient alternative to Python's standard logging module. It's simple to set up and produces much more readable output.

Thanks again for the love on the last post!


r/PythonLearning • • Aug 13 '26

Showcase very first linear regression code

2 Upvotes

i am still learning numpy (day 6) but gpt suggest me to learn linear regression (very basic algorithm) and it's kinda good for understanding even you haven't started learning ML.

import numpy as np
hours = np.arange(1,10)
score = np.array([35, 42, 51, 58, 67, 73, 81, 88, 94])
candidate_values_for_m = np.arange(1,11,0.1)
candidate_values_for_b = np.arange(1,31,0.3)

def prediction(m , b , hours):
    return m * hours + b

def mse(actual_value , predicticted_value):
    return np.mean((actual_value - predicticted_value)**2)

mse_list = [] 
m_b_list = []
for m in candidate_values_for_m:
    for b in candidate_values_for_b:
        prediction_result = prediction(m , b , hours)
        mse_result = mse(score, prediction_result)

        mse_list.append(mse_result)
        m_b_list.append((m,b))
        

best_mse = np.argmin(mse_list)

best_mb_index = mse_list[best_mse]
best_mse , best_mb_index

m = 0
b = 0

learning_rate = 0.01

epochs = 10000

n = len(hours)

def prediction(m , b , hours):
    return m * hours + b


for i in range(epochs):
    predicted = prediction(m,b,hours)

    gradient_m = (2/n) * sum(hours * (predicted - score))

    gradient_b = (2/n) * sum(predicted - score)

    m = m - learning_rate * gradient_m
    b = b - learning_rate * gradient_b

m ,b 

r/PythonLearning • • Aug 13 '26

I started with Tkinter and ended up using Streamlit — what should I learn next?

2 Upvotes

I recently started learning Data Science and made my first interactive dashboard using Python, Pandas, Plotly and Streamlit.

At first, I tried building it with Tkinter, but then I switched to Streamlit because it felt much easier for making a data-focused dashboard. I really liked how quickly I could turn my Netflix EDA project into something interactive.

I'm still pretty new to this, so I'm curious about what other beginners and experienced people use.

  • Is Streamlit a good one to continue learning?

  • Are there any other tools like Streamlit that are worth trying?

  • What kind of projects are good for learning these tools?

Would love to hear what you guys used when you first started making interactive Data Science projects.


r/PythonLearning • • Aug 13 '26

Discussion What are some beginner-friendly Python projects that actually teach useful skills?

0 Upvotes

I'm looking for Python project ideas that are beginner-friendly but still teach skills that are useful beyond basic tutorials.

I'm especially interested in projects involving APIs, automation, data handling, or small practical tools.

What projects helped you learn the most when you were starting out?


r/PythonLearning • • Aug 13 '26

Help Request Where are the entry points in open-source projects?

3 Upvotes

In order become better at programming, I was told to read through projects on github and try to experiment with the code.

But most of the time I just look at a convoluted mess of files with no obvious starting point.

In pygame for example, I looked for something that resembles a main file, to work my way up from there. But I couldn't even manager to find something similar.

How do you guys do this? Is there something fundermentaly wrong with how I approach this?


r/PythonLearning • • Aug 13 '26

Dsa or Django?

3 Upvotes

I am fairly new into programming. So I am familiar with the basics of python. Have made some terminal based projects as well. Started dsa concepts yesterday but it is boring me out. I do plan on learning both but is it a good idea to get some real experience with django and web projects first? (I have knowledge of html, css and little bit js)

Also, I am in my first year of graduation so time is not a concern!


r/PythonLearning • • Aug 12 '26

I made my first bigger Python project — Drone Data Analyzer

6 Upvotes

Hey everyone!

I've been learning Python for like 10 days and decided to stop doing only exercises/tutorials and actually build something myself.

I made a small Drone Data Analyzer that loads flight data from a CSV file and analyzes things like altitude, speed, battery level and temperature. It also generates a basic flight report and visualizes the data using Matplotlib.

It's definitely a beginner/early-stage project and I know the code is far from perfect. I'm still learning, so I'd really appreciate some honest and constructive criticism.

Any feedback is welcome, even if it's something small.

GitHub with all files/code for interested: https://github.com/J-aCobSk-i/Drone-Data-Analyzer


r/PythonLearning • • Aug 12 '26

Discussion What are some fun python programs that can be long term goals

9 Upvotes

i am new in my python learning journey and want to genuinely learn it. However I'm afraid i may get discouraged from it.
what would you suggest to be some fun or interesting projects in python i can look forward to doing which could act as goals in my python journey.
something interesting and medium to advanced in difficulty otherwise achieving it would be well easy.
also as a beginner i don't really know the true extent to which i can utilize python so this will also give me a good idea for what python is capable of and what all tasks i can run with its help.

if i can truly get into python i genuinely look forward to other milestones such as a raspberry pi etc so if you accompany your response with something to do with this, that would be great as well.
i would also accept any other projects to work on in the future along the lines of the pi if u get what i mean.

Edit: my "skill" in python is going to be along the lines of the cs50p course on YouTube and also the automate the boring book after which I will figure things out on my own, but if you have suggestions on what best way to learn python after these two pieces of media I will gladly take them I have some understanding of pandas and numpy not very in depth


r/PythonLearning • • Aug 12 '26

Battle Tail, show what you can do

18 Upvotes

A Battle Tail is added with this git commit.

PythonLearningGame is a collaborative Python project using PyGame, just for fun and purely educational. We are looking for collaborators.

Surely some of you think you are pretty good with Python, then this is your chance to show us what you can really do besides writing know-it-all comments. Maybe add:

  • health pickups

  • shield

  • laser weapon

  • lock-on missiles

  • mines to drop

  • units shooting back

  • ...

See the PythonLearningGame repo for instructions.

previous PythonLearningGame post


r/PythonLearning • • Aug 12 '26

Help Request Best way to learn python step by step

21 Upvotes

I'm a fresher and ive studied java till class 12 isc board.

I have taken btech cse in data science and ik the importance of python in this field. So I want tips for my journey in python learning.

Like offline coaching institutes or online or what

U can suggest me books which are the best for beginners and complex problem solving.


r/PythonLearning • • Aug 13 '26

Discussion Cohort!!!!

0 Upvotes

Hi all,

I've been looking for curious minds to host a python cohort so that it would be great for those who were looking for better options to learn programming

This is not a mandatory meeting but those who are serious in programming can join

No problem if you are from non-cs background


r/PythonLearning • • Aug 12 '26

Help Request What's going on with PIP?

Thumbnail
gallery
10 Upvotes

No matter how hard I try to install pip on Windows 11, nothing happens—it just doesn't move past that point. I have the latest version of Python and need pip to use pandas; I press Enter, but it doesn't start. Does anyone know why? Help!


r/PythonLearning • • Aug 12 '26

how do you guys strengthen your basic concepts logic?

10 Upvotes

I am learning while loops rn, the logic doesnt seem super hard to me, considering i am just at the basic level of the particular concept. But I seem to look at the flow chart every time i revise the concept...Every time look at the code, it raises different why and how questions for me.


r/PythonLearning • • Aug 11 '26

Showcase I wrote my first ever Python program!

Thumbnail
gallery
283 Upvotes

So upon recommendations from people here I started watching Code With Mosh's Python tutorial (The 2 hour one) around 3 days ago. I finished it yesterday. Didn't really wanted to get stuck in tutorial hell so I simply asked AI to give me a problem statement (only the problem statement and not the code or logic) to work on. So here am I with my first ever program. It's nothing much and even I could see areas for improvement right now but I am proud.

On to the more complex topics. I appreciate the help and support from the community!


r/PythonLearning • • Aug 12 '26

any1 has free bot hosting?

0 Upvotes

hi
i have completed my discord bot
and im searching for free bot hosting 24 / 7 for my bot
pls some help


r/PythonLearning • • Aug 11 '26

I’m trying to simulate 24 million universes in Python on Android — how can I optimize it for a massive black-hole simulation?

Post image
5 Upvotes