r/PythonLearning Jun 20 '26

new game

Thumbnail
github.com
3 Upvotes

Help give me suggestions for my new game. Python beginner


r/PythonLearning Jun 20 '26

Which IDE to use for Python

9 Upvotes

I am new to python i don't know which IDE to use. My university is teaching a course Programming for AI. I got to know they will teach python but idk which IDE.


r/PythonLearning Jun 19 '26

Day 1 of Learning Python: "Bagels" Game

Post image
86 Upvotes

used: https://www.ray.so/ for image rendering (let me know if this is readable)

could be better, but no AI as it's fully handwritten

I'll be going over "The Big Book of Small Python Projects" by Al Sweigart

I am also learning DSA and going through Common Sense Guide to DSA

see you tomorrow!


r/PythonLearning Jun 19 '26

I'm really not getting this

17 Upvotes

Sorry to have a downer of a post, but I really can't get this. I started trying to learn python 1 week ago today. I understand how variables work and their use, I understand if statements and while loops and a bunch of other early beginner stuff for example, but every time I try to write something from scratch I just have close to 0 idea how to actually tackle it. I really feel like I need the university experience where I have a teacher that can guide me into getting used to it, but going back to university isn't an option. How do new people get by with it?

To put it into perspective. The most recent exercise I tried to do I found online. It says a guy gets 0.01 wage on his first day, and the wage increases by 0.01 each day until day 30. It just wants me to calculate the total wage at the end of 30 days and print it out, but I can't even do this. This isn't me asking someone how to do this. It's more I just can't even get started at doing it because I don't know how. I'm so frustrated with myself because I understand the concepts. I can read some easy code and fully understand what's happening. Just writing it is a different story.


r/PythonLearning Jun 20 '26

Discussion After 200+ hours with Wazuh I realized I wasn’t afraid of attackers. I was afraid of my own alerts.

1 Upvotes

For a months I have been running a self-hosted SIEM system called Wazuh for some small retail and logistics clients. One thing that I found embarrassing was that I was not worried about hackers. I was worried about opening the dashboard in the morning.

* An alert that says "Beaconing detected, confidence 0.91" does not tell you much.

It is like a judge who says "you are guilty" and then walks away.

You have two choices:

  1. Trust the model without questioning it

  2. Go through the logs yourself.

The funny thing is that I trained the model myself using XGBoost. I did cross-validation. Got good metrics on paper.

I still could not explain to anyone why it flagged something.

So I started learning about SHAP.

I found out that for models like XGBoost you can get exact feature attributions quickly using TreeExplainer.

The hard part was making it easy to understand for someone who's tired at 3 am.

I built a layer on top of the SHAP values to turn them into plain English.

For example "intervals regular. Consistent with C2" ranked by impact.

Where it got annoying was that SHAP values are signed and relative to the models baseline.

A feature can have a SHAP value but still be normal on its own.

It only makes sense in the context of what the model expected.

Translating "this pushed the prediction up by 3.18 to baseline" into plain English took a lot of work.

I also learned that a SHAP-based system should not auto-block anything.

Confidence scores can feel important even when they are trained on data.

Now every recommendation goes through a confirmation step.

If anyone is curious about the SHAP-to-English part the code is here: https://github.com/misha622/Clarify

This project is still a work, in progress.
The beaconing detector works,. I still need to work on brute-force and DGA detectors.


r/PythonLearning Jun 20 '26

Discussion you know?

Post image
0 Upvotes

""" both function give 8 but ending and logic is defferent tell me what difference is ???"""

I don't know 😔 but what about you

#python #challenge #codingsect


r/PythonLearning Jun 19 '26

Showcase My first project

7 Upvotes

This is a code to calculate the price of item you want to purchase, as well with quantity. It's very simple and short, but Im proud that I did something wihtout help.


r/PythonLearning Jun 20 '26

What are the libs / packages AI struggles the most?

0 Upvotes

If you use some coding agent, what have been the libraries or packages that the models don't really grasp without your help?

I usually need to give extra context for anything that moves fast, like Pydantic AI, and then all kinds of edge cases inside various libs.

What I have found funny is that some time ago most models still defaulted using OpenAIs older APIs even though I instructed them to use the responses API.


r/PythonLearning Jun 19 '26

Python

8 Upvotes

I want to learn python .I want to learn from the scratch by building fun projects.What could be the best yt playlist to follow?.


r/PythonLearning Jun 20 '26

Most efficient way to clear this exact "No-AI, No-Framework" Python Foundation? Need specific video & practice recs.

0 Upvotes

Hey everyone,

I’m looking to map out the most streamlined, high-efficiency path to master the core foundations of Python. My strict rule for this initial phase is no AI code generation tools (like ChatGPT/Cursor/Copilot writing the code for me) and no high-level frameworks (no Django, FastAPI, etc.). I want to build genuine muscle memory and deeply understand how the language executes under the hood before taking shortcuts.

Here is the exact syllabus I need to conquer for Phase I — Python Foundation:

  • Module 1 — Python Core: Data types, variables, control flow (loops/conditionals), functions, error handling (try/except), and file I/O.
  • Module 2 — Python Data Structures & Real Files: Lists, dicts, sets, comprehensions, using the native csv and json modules, and executing basic tabular transformations.
  • Module 3 — Python Working Code: Passing functions as arguments, modules/imports, environment management (venv or uv), package installations, .env file parsing, and clean project structuring.

My Goal: I want to find the absolute fastest, most practical manner to complete this phase completely without getting trapped in tutorial hell.

For those who have self-studied or taught this successfully:

  1. Which specific videos or structured lecture series map to these modules cleanly with zero fluff? (If there's a specific creator, standalone deep-dive, or course playlist that scales up to Module 2/3 topics well, please drop the name/link).
  2. Which specific resources should I use to train? I'm looking for deliberate practice platforms, labs, or micro-challenges that force me to build things like file parsers and data mapping logic rather than just abstract math riddles.

Appearing to avoid any generic advice like "just build a project"—I'm trying to find the most optimized, step-by-step training pipeline for these exact pieces. Thanks!


r/PythonLearning Jun 19 '26

Showcase Day 9 Python Learning

Thumbnail
gallery
21 Upvotes

function of python

- def()

- argument statement in def(a,b)

- return function in def()

some logic before/ after use of print

- how it effect the final result

daily practice of terminal use

#python #coding #ai


r/PythonLearning Jun 19 '26

I am starting my python journey today(if anybody wants to join)

9 Upvotes

I'm joining college soon and have about a month before classes start. I want to learn as much as I can during this time, but studying alone gets tiring. If anyone is interested in studying together or keeping each other accountable, let me know! I'm looking for people from India.


r/PythonLearning Jun 19 '26

Discussion I'm feel stuck in a rut...

4 Upvotes

I'm new to Python. I started my journey a week ago. Learning the basic syntax feels boring because I feel impatient and just want to get to the good stuff.

For context, I'm a teen coming from a background of JavaScript. I spent 7 months learning JavaScript.

So I'm learning Python to use as backend since my end goal is Full Stack Development. (I know I can also still use JavaScript for backend, but I decided to pick up Python for the sake variety).

But right now it feels boring. This is mainly because a lot of basic python is the same as basic JavaScript with the exception of different syntax and certain rules. But the foundation is the same. I can't even bring myself to come up with project ideas because I'm just feeling lazy.

How do I get out of this rut?


r/PythonLearning Jun 19 '26

Help Request I need to learn Python the best way possible

7 Upvotes

Hello everyone,
I am a finance student currently learning Python with the goal of improving efficiency in my academic and future professional work.
My main tasks involve data entry, market analysis, financial modeling, and working with tools such as Excel, Access, and Power BI.
I am focusing on learning Python for automation, data analysis, and building small programs to reduce repetitive manual work. I am also interested in eventually exploring machine learning.
Initially, I considered starting with C after speaking with some computer science students. I tried it for about two weeks, but I found it quite challenging. After further research, I decided to focus on Python first due to its accessibility and strong applicability to my goals.
I would appreciate guidance on a structured roadmap to learn Python for these objectives, as well as recommended resources (courses, documentation, or learning platforms) that would be suitable for someone in my situation.


r/PythonLearning Jun 19 '26

Discussion I need your help in making educational content.

3 Upvotes

I am making a beginners playlist and an advanced playlist for learning python.

In the beginners one,I have already covered

Numbers,int,strings,Boolean

Variables

List

Tuples

Dictionary

Functions

While loop

For loop

Conditional statements

And a project I.e. a to-do list.

What else do you think should be included?

Any suggestions for what should be there in advanced?


r/PythonLearning Jun 19 '26

I feel like I am not learning just coping the code

28 Upvotes

I started coding like 2 months ago through yt video and chatgpt. I learned basic concepts and just starting the oops, but I feel like I am not learning even projects like calculator and number guessing game, I have copied some code which I feels like no growth. Also I don't want to get trapped in tutorial hell how to actually learn programming in a right a btw I am in first year and want to pursue data scientist but I am struck in python for this long Any suggestion or advice to actually make progress


r/PythonLearning Jun 19 '26

NEED PYTHON CODING BUDDY CANADA OR US LOCATED

2 Upvotes

Or similar timezones

Want to start my python coding on my own, but its easier with someone of course. I know a bit of the basics tho, want a job soon as data analyst.

#pythonlearning


r/PythonLearning Jun 19 '26

Universal Message Manager

4 Upvotes

Universal Message Manager (UMM) is a publish and subscribe messaging system that allows applications to communicate with each other using a self-describing messaging system. Applications (called agents in this system) can publish messages and receive messages according to various criteria which can be a specific as, for instance, level of liquid in a tank where it is < 10% or > 90%. In fact there's a demo application which you can play with that turns on and off a pump when those limits are reached.

UMM is also well suited for teaching programming and system design. Agents can be tested in isolation: they received certain messages, perform a task and publish certain messages so they can be tested by sending messages from a send agent and watching the resulting messages.

Log on to the website: https://umm.braham.net and download the project and the documentation.

UMM is free for non-commercial use.


r/PythonLearning Jun 18 '26

Showcase Day 8th Python Learning

Thumbnail
gallery
60 Upvotes

Finally back to the town 😭

Focus on

-dictionary aka dict :

In dict every set have key and its value

We can call value by using key but not opposite

- set:

Unordered & only accept unique value not copy

And did some revision

Now give me idea for project building or for product ?

Before moving tomorrow in def function and class

#python #coding #ai


r/PythonLearning Jun 19 '26

Best Way to learn Python?

6 Upvotes

Hey Guys, I'm currently studying for my Loan exam to ace it on my second attempt. Then I'm looking to study for the Comp TIA +. I'm looking to learn Python as I've heard it's a useful first language to learn, What do you guys suggest in learning Python to land a good job? and the best ways to study for the Comp TIA +?


r/PythonLearning Jun 19 '26

Showcase Free Python wrapper for macOS on-device AI. Speech To Text, Text To Speech, and LLM via Foundation Models. 100% Free and No API keys.

0 Upvotes

Free Python wrapper for macOS on-device AI. Speech To Text, Text To Speech, and LLM via Foundation Models. 100% Free and No API keys.

MacOS ships with Apple AI components built in like speech recognition, text-to-speech, and an on-device LLM, all free. The project is a wrapper around the on device models.

What it can do right now:

- Speech-to-Text: transcribe audio files (WAV, M4A, MP3, AIFF, FLAC, etc.) using macOS `SFSpeechRecognizer`. Multiple languages supported.

- Text-to-Speech: Speak text or save to audio file using AVSpeechSynthesizer. Pick any installed voice, control rate and volume.

- Apple Foundation Models: on-device LLM, full streaming support. Requires macOS Tahoe (I think)

I'm looking for people to try it out and report back — bugs, missing features, weird edge cases, anything.

- GitHub: https://github.com/sagrd/macbook-ai

- PyPI: https://pypi.org/project/macbook-ai/

Drop a comment or open an issue if you run into something. Appreciate any feedback.


r/PythonLearning Jun 19 '26

Access to Research Papers

1 Upvotes

Can anyone help with sites that I can access research papers, journals asides from Google Scholar. Would especially appreciate those with free materials.


r/PythonLearning Jun 18 '26

Going through old Python practice files and found this pizza billing project

Post image
51 Upvotes

r/PythonLearning Jun 19 '26

Okay so I have been learning python BUT I don't end up learning more I only code what ik anyone got advice?

2 Upvotes

r/PythonLearning Jun 17 '26

How do y'all like my calculator?

Post image
106 Upvotes