r/PythonLearning • • 6d ago

Showcase I built a Python tool that tracks my coding time on Windows without a start/stop timer

Thumbnail
gallery
3 Upvotes

I wanted to know how much time I actually spend in my IDE. Leaving PyCharm open all afternoon doesn’t mean I coded for four hours, so I wrote a small Python tracker that runs in the background. It checks which window is in focus and pauses after 10 minutes of inactivity.

The first version sent daily totals to the Pixela API. For this version, I built a local dashboard with PySide6 and Matplotlib. I can open it at the end of the week, see my hours day by day, and compare them against a daily goal. The data stays on my PC, and the dashboard can stay closed while the tracker runs.

It tracks PyCharm, VS Code, Visual Studio, and IntelliJ IDEA by default. If you use another editor, you can add its .exe name to a JSON file. There’s also a demo mode if you want to try the dashboard before you’ve logged any time.

GitHub: Coding Tracker Dashboard

One trade-off I’m curious about: reading docs in a browser is often part of coding, but the tracker only counts time in the apps you choose. If you tracked your own coding time, would you want to include that, or would you find an IDE-only total more useful?


r/PythonLearning • • 6d ago

Help Request Data analyst or Python developer confusion

1 Upvotes

I'm getting confused If I should become a python developer or data analyst. I'm from belagavi, India 3rd cse student I have something like 6-7months for preparation of placement

Like I'm hearing for data analyst freshers don't get job it seems 😭(Like can you guys please confirm if this is true or just a myth ) and for python developer DSA I have to learn which is pretty much a big headache and lot of skills to learn as well

Also like how DSA is necesarry for a python developer to learn ? Which is a better option python developer or data analyst or any other job in techfield ?😭😭😵‍💫


r/PythonLearning • • 6d ago

Giving back to the community - The Complete Backend Development Course (last round)

38 Upvotes

Hey everyone, I decided to make my course free in order to help people.
This course is my backend development course which is about SQL, Python, APIs, Docker, Kubernetes, Linux, Git & More

The link is: https://www.youtube.com/watch?v=CBIu6hcyStg

If you can like and subscribe (and maybe add a comment) I would appreciate it a lot, Thanks.


r/PythonLearning • • 6d ago

Python Quiz of the day!

0 Upvotes

What will be the output of the following Python Code?

print((lambda x: (lambda y: x**y)(3))(2))


r/PythonLearning • • 6d 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 • • 6d ago

A Python script that keeps today's downloads within reach and sorts older files into category folders automatically.

Post image
2 Upvotes

A Python script that keeps today's downloads within reach and sorts older files into category folders automatically. Built with Python's standard library and an object-oriented design, the organizer scans a folder at a configurable interval, classifies files by extension, and moves eligible files into subfolders such as Audio, Images, and Documents

Features:

  • Organizes files by extension using a configurable category mapping.

  • Keeps files created today in the main Downloads folder.

  • Skips configured temporary download files, shortcuts, and specific filenames.

  • Generates numbered filenames when a destination is already occupied.

  • Supports a dry run that reports planned moves without creating folders or moving files.

  • Reports scanned, moved, planned, skipped, and failed files.

  • Repeats scans at a configurable interval and supports stopping with Ctrl+C.

  • Scans the top level only; existing subfolders are left untouched.

It's also on my Github .

You can test it in whatever folder you want by giving it the full path of the directory.


r/PythonLearning • • 7d ago

Help Request Need help with player movement

2 Upvotes

Hi everyone, I need some help.

I'm making a game for my school project. I made a simple movement test, and it worked well when I pressed the WASD keys individually. However, when I held down a key, the circle moved farther than I expected.

How can I prevent new key events from being processed while the circle is still moving?

I am sending photo of code down.


r/PythonLearning • • 7d ago

Im still learning wanna join me ?

0 Upvotes

I didnt build any python project before at least not from scratch so i wanted to start building one application and make it as good as possible so wanna join ne and start building our mobile application together to motivate each other ?


r/PythonLearning • • 7d ago

Python Boolean

2 Upvotes

I'm having some trouble understanding Python boolean logic, it’s so simple to let it be confusing. Can anyone explain it to me in their own language?


r/PythonLearning • • 7d ago

Help Request Need help understanding how != works

Thumbnail
gallery
31 Upvotes

Hello, I'm working on learning the basics of try/except blocks. To do so, I'm intentionally raising errors. The question is: why is my TypeError occurring when I enter an integer? I checked the input type, and it shows as an integer, but the error is still raised. What am I missing here?


r/PythonLearning • • 7d ago

Why Python Is the Best First Language?

44 Upvotes

Out of hundreds of programming languages, why start with Python? You could almost read its code out loud.

Printing one word in C takes several lines of setup. In Python it's one line. Less noise means your brain goes to the problem. Python also ships with a huge toolbox, there's a free add-on for almost everything else, it's free itself, it runs on Windows, macOS and Linux, and so many people use it that most errors you hit already have answers online.
Youtube: AmirZareDev

#python #learnpython #programming #coding


r/PythonLearning • • 7d ago

Showcase Week6 of learning python and week3 for learning how to code in flet this is what i made:Notifio

Thumbnail
gallery
10 Upvotes

Hey everyone! Iv been learning python for 6weeks and been building notifio for 3 weeks this is my progress

I've been working on Notifio, A lightweight menu bar app that watches your favorite creators and news sources and pings you the moment something new happens

Github: https://github.com/he3vn/Notifio

Would love to hear what you think about it and please star if you like it!


r/PythonLearning • • 7d ago

Help Request Python

0 Upvotes

Hi.

MY PROBLEM: I'm terrible at building algorithms. I never know "WHAT TO WRİTE NEXT LİNE" when coding. im very bad at thinking how the algoritm works... need help. pls

--- Another issue : i haven't decided which field of Python I want to specialize in yet. So i dont know which tools or programs or technologies I should learn beside with python... and I feel like I'm wasting time trying to figure it all out, yeh i feel lost :(((

***I think the best thing to do is learn Python basics really well first, no matter which field we choose later***

Availability & Time Zone: Time zone: UTC+3. I'm working during the day so im available in the evenings/nights.

I also have a learning project idea. For example, we could use AI to create a simple website (like a dietitian's website or dentist whatever ) The frontend isn't our focus, so AI can handle that part. Then, we can focus on learning Python and backend by actually building the backend together. and learn the backend tools.. or data ? idk
For example, the website could have an "appointment form" with name, surname, phone number, email . We could learn how to handle all this data using Python.

I thought this could be a good way to practice. What do you think?

one last thing: rarely open Reddit, so I might miss your message here. If you're seriously interested u are allowed to quick dm me IG:tecna06 (my profile is a jersey).


r/PythonLearning • • 7d ago

Help Request Could someone recommend where to code

0 Upvotes

I’m sorry i downloaded reddit for this and im not used to how it works sorry im so desperate.

I do a-level computing and what we use in college (visual studio code) doesn’t work at home and i’ve tried loads of free online programs but they don’t run the code that we worked on.

If anyone could recommend where i could code that would work (preferably free)
thank you

edit - thanks everyone some of your answers worked and my teacher finally replied to my email


r/PythonLearning • • 7d ago

Showcase stu.py – my free Python trainer that runs in your browser. Here’s a 2 min tour, I’d love your honest feedback

9 Upvotes

Hi r/PythonLearning,

stu.py is a free place to learn and practise Python, right in your browser. No sign-up, no ads, nothing to install, and your progress stays in your own browser.

How it works:

  • You pick your level (beginner, coder or pro) and follow the Code-Trail, room by room: variables, loops, lists, functions and more.

  • Over 1000 tasks: predict the output, find the bug, fill the gaps, put lines in order, fill in trace tables, build flowcharts and write your own code.

  • Stuck? Short trainings, hints and a cheat sheet that points you to exactly what you need for the task you're on.

  • Already know some Python? Take the room exam and skip ahead.

  • Repeat & Learn brings back tasks you got wrong, so things actually stick.

  • A sandbox with console and variable explorer, plus Stew, a small robot who keeps you company.

  • English and German.

For teachers:

  • No accounts, no server: learners save their progress as a file and hand it in

  • Load the files and get a class overview, competence profiles and room exam results

  • Hand out codes to unlock rooms and award special badges

  • Coming next: task creator for your own exercises and a test builder

The video shows the beginner path. Two more short videos are on the start page:

Honest feedback is very welcome:

  • What's confusing?

  • What's missing?

  • What breaks?

Comment here or use the "Feedback" link at the bottom of every page.

Cheers,
Stew


r/PythonLearning • • 8d ago

Learning Python efficiently

21 Upvotes

Hi everyone! I've recently started learning Python with SoloLearn and I'm currently working on "logical operations," and everything is going well. I'd just like some advice, firstly, if there's A better app or website than SoloLearn, then, how much time per day should I dedicate to learning Python, and how soon could I start create small games (like Tetris for example, or geometry dash...). Thank you in advance for your answers, I will read all your advice, have a good day!


r/PythonLearning • • 8d ago

Python Quiz of the Day.

0 Upvotes

x = 5

print((x := x + 3) * (x := x - 2))

What will be the output?

A) 24
B) 36
C) 48
D) 30


r/PythonLearning • • 8d ago

Need Python Bootcamp

5 Upvotes

Does anyone know of a reputable Python Boot Camp available online that is instructor lead?

Expensive or cheap, just need reputable and instructor lead...or even tutoring


r/PythonLearning • • 8d ago

Discussion I made this, 1.5 hours into learning python

Post image
12 Upvotes

r/PythonLearning • • 8d ago

Showcase Native Python setup for AutoGPT Classic without using Docker

1 Upvotes

Running AutoGPT locally without Docker often trips people up because the official maintainers shifted primary development to AutoGPT Platform, which requires containerization. However, if your goal is running the agent loop natively on your host machine, AutoGPT Classic inside the classic directory still supports direct Python execution.

​The setup requires Python 3.12, Git, and Poetry. A common mistake is attempting to launch Poetry commands from the repository root or trying to install dependencies via standard global pip, which breaks the environment locked inside poetry.lock. You must execute all Poetry commands directly from the classic subfolder, verify Poetry targets the correct Python 3.12 interpreter, and configure your model provider credentials inside classic/original_autogpt/.env.

​I put together a complete technical breakdown that walks through dependency resolution, workspace directory isolation, Llamafile local endpoint routing, and diagnosing environment failures across Linux, macOS, and WSL 2.

​Check out the full walkthrough: https://interconnectd.com/blog/335/how-to-run-autogpt-without-docker-step-by-step-python-guide/


r/PythonLearning • • 8d ago

ABOUT TO START SOMETHING AND I'LL DO IT.

6 Upvotes

I've tried almost ten times and every single time i stop somewhere along the way , but this time im making it public , i'll start python today , i'll practice everyday , and i'll know most things if not all thing about python in three months or less . If anyone wants to join in go ahead and comment , i'll make a group or something and alert everyone , everyday . To those who know python , you can send motivation or advice for me or anyone that wants to learn , THANK YOU AND GOODLUCK.


r/PythonLearning • • 8d ago

Showcase good start? started learning a week ago

59 Upvotes

r/PythonLearning • • 8d ago

Looking for people to learn python with

88 Upvotes

I’m currently learning Python from scratch, and I’m looking for people who are also interested in learning Python so we can connect, share resources, help each other understand concepts, and stay motivated. If there’s already a beginner-friendly community or study group I can join, I’d appreciate your recommendations.


r/PythonLearning • • 8d ago

Realistically, how long does it take to understand Python?

19 Upvotes

I am very new to coding (2 days old new) and have no background experience. I was just wondering at what point do you think you should start understanding Python? I’d like to try and create a timeline before saying ‘I can’t do it’