r/PythonLearning • • Jun 02 '26

I am in 3rd year of btech and i want to learn python perfectly

0 Upvotes

So I just completed my second year, and I've got a one-month summer holiday. I really want to put my time into learning something real that will help me land an internship because I wasted my first two years only focusing on college academics, which were mostly theory. Even if there were practicals, they weren't taught from scratch.

I have been looking into many things to learn, one of them being AI Automation and GenAI, but I want to learn Python first so that my basics are strong. I'd be glad if someone could suggest a good course or a video playlist.I am also open to new opinions and views, as I have ADHD and I couldn't focus on one thing for more than 2 days.

Also, if my goal is to learn both Python and AI Automation/GenAI, how would you recommend I start? Should I focus on Python first and then move to AI, or is there a way to learn both together without getting overwhelmed? I'd love to hear how others would approach this.


r/PythonLearning • • Sep 10 '25

How to bypass captchas

0 Upvotes

I’m learning to build Python automation scripts. Do you have any idea how to bypass captchas while doing web scraping. I am a beginner and really stuck here!!


r/PythonLearning • • Jun 22 '26

Building a real-time speech to speech translation pipeline in Python and the hardest part was not translation

0 Upvotes

I have been working on an open-source real-time speech translation project in Python and have run into an unexpected problem.

I assumed translation quality would be the hard part, but it was not. The hardest part ended up being deciding when to hand audio from one stage of the pipeline to the next.

If the chunks are too small, transcription quality drops, and if the chunks are too large, the conversation starts feeling delayed.

We eventually saw noticeably better results by waiting for complete sentences instead of translating smaller fragments, but that immediately increases latency and affects the flow of a conversation.

Another interesting challenge has been balancing three separate experiences:

- Transcription latency
- Translation latency
- Speech synthesis latency

A pipeline can look fast in benchmarks and still feel slow to a user.

We are still actively iterating on the architecture and experimenting with ways to improve context handling and responsiveness.

For anyone working with Whisper, streaming audio, or real-time speech systems in Python, how are you approaching chunking, context retention, and latency tradeoffs?

Project for context: https://github.com/PolyTalkIO/polytalk


r/PythonLearning • • Jun 22 '26

Showcase Built a CLI tool that maps any codebase instantly, no API keys, fully offline

0 Upvotes

Just run pip install codemappr then codemappr scan inside any project folder.

It detects 20+ project types (React, Django, Rust, Flutter, etc.) and gives you a full architecture breakdown in seconds. Outputs to terminal, Markdown, or HTML.

No setup, no API keys, no internet needed.

GitHub: https://github.com/erensh27/CodeMappr


r/PythonLearning • • Jun 09 '25

Python

0 Upvotes

Today I start to learn a python plz put your advices to make this happen in the best and shortest time possible thank you 😊


r/PythonLearning • • Mar 25 '26

Which Python field should I focus on for job opportunities in 2025?

0 Upvotes

Hi everyone,

I'm a beginner in Python and my goal is to eventually get a job in tech.

Right now I'm deciding between focusing on:

  • Data analysis

  • Backend development

  • Automation scripting

From your experience, which of these paths has the best job opportunities today and in the future?

And which one is more realistic for a beginner to break into within 6–12 months?

I'd really appreciate your insights!


r/PythonLearning • • Apr 12 '26

Need help with question

Post image
0 Upvotes

Hi Guys. Still relatively new to Python and had a question on one of my tests. Am i able to get some advice on the best way in which i can tackle this question? Thank you all so much.


r/PythonLearning • • May 17 '26

Real-time Network Traffic Classifier using Random Forest, FastAPI, and Streamlit (96.8% Accuracy)

0 Upvotes

I recently built an AI-powered Network Traffic Classifier that detects network intrusions in real-time, and I'm sharing it for feedback from this community.

🔒 What it does:

The system analyzes network traffic patterns and automatically classifies them as Normal ✅ or Malicious ⚠️ (DoS, Probe, R2L, U2R attacks) using a Random Forest model trained on the NSL-KDD dataset.

Key metrics:

- 96.8% overall accuracy (Precision: 96.81%, Recall: 96.8%)

- <1ms inference time per prediction

- 200 decision trees, 12 network features analyzed

🛠️ Tech Stack:

- ML: Random Forest (scikit-learn)

- Backend: FastAPI with OpenAPI docs

- Frontend: Streamlit (6-page dashboard)

- Deployment: Docker & Docker Compose

- Dataset: NSL-KDD (5,000 simulated samples)

📂 GitHub Repo:

https://github.com/GulrezQayyum/network-traffic-classifier-model

🚀 Quick Start (2 mins):

```bash

git clone [https://github.com/GulrezQayyum/network-traffic-classifier-model.git](https://github.com/GulrezQayyum/network-traffic-classifier-model.git)

cd network-traffic-classifier-model && docker-compose up -d

# Dashboard: localhost:8501 | API Docs: localhost:8000/docs

What I'd love from you:

  • Feedback on the model architecture or feature selection

  • Suggestions for improving real-world accuracy (currently 96.8% on benchmark data)

  • Ideas for additional threat detection features

  • Any edge cases I should test for

I know I'm new to Reddit and can't upload videos yet, but I'm happy to answer questions or share more details in comments. Thanks in advance for your time!


r/PythonLearning • • Oct 25 '25

how to add?

0 Upvotes

Hey everyone, I started learning yesterday and was messing around with codedex while waiting for the scholarship from github to be approved. Can anyone tell me how to add points ?

   

 Nina's love mini text game

#stats
love = 0
happy = 0
anger = 0

print("Nina: Hello! I'm Nina, what's your name?")
print("")
username = input("Insert name here: ")
print("")
print("Nina: Wow! " +username+ " is such a pretty name it really suits you!")
print("")
print("DEV: Welcome to your first choice in this mini game,\n you MUST always answer using only numbers...\n it's easier to code that way ;p")
print("")
print("1. Thank you! \n2. Thanks! Nina is a pretty name too, just like you. \n3. Why are you talking to me anyway?")
print("")

answer = int(input("Select a number: "))

print("")
if answer == 1:
   happy = 1
   print("Nina: Let's get going!")
elif answer == 2:
   love = 1
   print("Nina: *blush* ... I should show you around campus.")
elif answer == 3:
   anger = 1
   print("Nina: humpf, it's my job to show you around campus.")
else:
   print("Invalid answer")

print("")

print("Nina: Where would you like to go first?")
print("")
print("1. Cafeteria \n2. Garden \n3. Your dorm ")

print("")
answer = int(input("Select a number:" ))
print("")

if answer == 1:
   happy =+ 1
   print("Nina: Let's eat then!")
elif answer == 2:
   love =+ 1
   print("Nina: That's my favourite spot!")
elif answer == 3:
   anger =+ 1
   print("Nina: I don't like your sense of humor.")
else:
   print("Invalid answer")

print(love)


r/PythonLearning • • Aug 31 '25

Asyncio in Python Explained with Restaurant Example 🍲🥪🥤 | Python Async Tutorial Day 1

Thumbnail
youtu.be
0 Upvotes

r/PythonLearning • • May 29 '26

All in one

0 Upvotes

Although it's not best practice (what I've heard), I'm currently coding a new rougelike rpg in one file and have reached over a thousand lines so far. Now I'd like to know how to show to you guys.


r/PythonLearning • • Oct 05 '26

I built a free, open-source Python learning site — beginner to CPython internals, with tested code examples

0 Upvotes

**What My Project Does**

A free, structured Python learning resource covering beginner

fundamentals through to advanced topics: concurrency, distributed

systems (Raft, CRDTs, sagas), performance, compilers, and CPython

internals. Organized into 7 skill levels and ~25 tracks.

**Target Audience**

Anyone learning Python — from first-timers to developers wanting the

deeper, systems-level material most tutorials skip. It's meant for

learning, free and ad-free.

**What Makes It Different**

- Runnable examples are actually tested — the repo has a CI test gate,

and pages show real output rather than made-up results.

- When an example needs a library or hardware I don't have, I say so

instead of faking it.

- Covers hard topics as small, readable, tested Python (e.g. a tiny

autograd engine, a Raft vote, a CRDT merge).

**Links**

- Site: https://ssnp75.github.io/PythonMastery-Site/

- Source: https://github.com/SSnp75/PythonMastery-Site

It's early — feedback and corrections (especially on the advanced

pages) are very welcome.

7 Levels: Beginner → Competent → Intermediate → Proficient → Advanced → Expert → Research

6 Tracks: Core Python · Web & APIs · Data & AI · Performance · Security & DevOps · Research & Compilers

28 sections (~260 lessons):

  • Foundations: Core Python, Patterns, Testing, Algorithms, Soft Skills

  • Web/Backend: Web & APIs, Networking, Auth, GUI, Automation

  • Data/AI: Data & AI, Data Engineering, Databases, AI & LLMs

  • Systems: Performance, Distributed, Scientific, Embedded

  • Infra: Security & DevOps, Deployment, Observability

  • Frontier: Research, Emerging

  • Applied: Domains, Projects, Reference


r/PythonLearning • • Jun 11 '26

Even/odd checker , feedback welcome

0 Upvotes

def even_or_odd(num) :

if num % 2 == 0 :

return "even number (:"

else :

return "odd number :)"

while True :

try :

num = int(input("enter a number :"))

d=2

print(even_or_odd(num))

except ValueError :

print("invalid input ! check your inputs ):")


r/PythonLearning • • Jul 13 '26

HackerRank Python 🐍 | Migratory Birds Challenge: Solving a Frequency Pro...

Thumbnail
youtube.com
0 Upvotes

Hi everyone,

I recently completed the "Migratory Birds" challenge on HackerRank using Python 3 and wanted to share my learning experience.

The goal of the challenge was to find the bird type that appears the most frequently in an array. If multiple types have the same frequency, the solution must return the smallest ID.

What I practiced during this challenge:

  • Python dictionaries (dict)

  • Frequency counting

  • Iterating through data structures

  • Problem-solving and algorithmic thinking

One interesting part of this exercise was that I had to refresh my knowledge of Python dictionaries. Instead of searching for a complete solution, I went back to the official Python documentation to understand how dictionaries work and how to use them properly.

My initial goal was to solve it in 20 minutes, but it took me around 30 minutes. I think this is actually part of the learning process: sometimes you need to slow down, review concepts, and rebuild your understanding.

I'm documenting my progress while improving my Python and algorithm skills through HackerRank challenges.

Would love to hear your thoughts:

  • How do you practice algorithms and data structures?

  • Do you prefer solving challenges from platforms like HackerRank, LeetCode, or building projects?

Thanks for reading!

#Python #HackerRank #Algorithms


r/PythonLearning • • 9d ago

Counting in Python? Don't reinvent the wheel!

0 Upvotes

You could write your own counting logic, but Python already has a collections.Counter class. It's faster than typical hand-written counting loops, well-tested, and makes your code easier for others to read.

However, this 𝐦𝐞𝐦𝐨𝐫𝐲_𝐠𝐫𝐚𝐩𝐡 👉 Counter demo shows that Counter has some interesting behaviors that might surprise you:

  • Missing keys return 0 instead of raising KeyError.

  • update() adds counts rather than replacing them.

  • subtract() can produce negative counts.

  • Zero and negative counts aren't automatically removed.

  • Unary + and - have some unexpected uses.

Did you know all these Counter behaviors, or did one surprise you?

See 👉 more 𝐦𝐞𝐦𝐨𝐫𝐲_𝐠𝐫𝐚𝐩𝐡 visualization.


r/PythonLearning • • Mar 16 '25

using ai to learn python.

0 Upvotes

Basically asking it for projects then ai is explaining on how to do them and i try my best to make them without the help of ai. Then i send the finished code to the ai and they give me hints if its wrong and how to fix it.


r/PythonLearning • • Mar 15 '25

Is python really worth for discord bots/etc?

0 Upvotes

r/PythonLearning • • Jun 14 '25

Help Request Why can't I get the second line to work?

Thumbnail
gallery
27 Upvotes

r/PythonLearning • • Jul 09 '26

The language is tooo powerful

14 Upvotes

I was today year old where I am utilising everything that python has to give. I made a cron job, a personal gui app, desktop app installer and mobile app using python, a website, orchestrator / ETL Jobs, DL/machile learning model, Solved some AI use cases all of them using python.🤯

I am really overwhelmed by how much agentic ai and python goes hand in hand. The ease of creating things using python >>>>>>>>>>>

Enjoying the journey but also scared by the capability of Agentic AI that it could take away the possibility of having a longer journey. 😭😭😭

What are your thoughts guys ?


r/PythonLearning • • Oct 30 '25

Python Copies

Post image
2 Upvotes

An exercise to help build the right mental model for Python data. The “Solution” link uses memory_graph to visualize execution and reveals what’s actually happening:


r/PythonLearning • • Jul 02 '25

Check

Post image
2 Upvotes

What might be the problem??


r/PythonLearning • • Jun 28 '26

looking for python mates

2 Upvotes

hei guys let me know how can feel free to talk in discord, talk about python and learn it together


r/PythonLearning • • Nov 08 '25

Help Request What is the best program to code in?

2 Upvotes

I have used Spyder and Trinket in school. But trinket doesn’t support all the import things. And I don’t know if there is anything better out there.


r/PythonLearning • • 15d ago

I just finished learn python basics, want to start building useful small projects. How do I go about it?

2 Upvotes