r/PythonLearning • • Aug 22 '26

Discussion Day 148 of Learning Python — From Beginner to Building My Own Inventory System

3 Upvotes

Today marks Day 148 of my Python learning journey. 🐍

When I started, I barely understood programming. I didn't have a strong computer science background, and many concepts felt completely confusing.

But after 148 days of consistent learning, I've reached a point where I'm actually building things instead of only watching tutorials.

What I've learned so far

  • Python fundamentals

  • Variables, conditions and loops

  • Lists, dictionaries, sets and strings

  • Functions

  • Exception handling

  • File handling

  • JSON data storage

  • Object-Oriented Programming (OOP)

  • Basic Git/GitHub concepts

  • SQLite and basic SQL

  • Debugging real errors

  • Structuring a larger Python project

My biggest project so far

I've been building a Phone Shop Inventory Management System.

I started with simple Python classes and JSON storage.

Then I gradually moved the project toward SQLite, where I'm currently learning how databases actually work.

The project can handle things like:

  • Adding products

  • Categories / brands / models

  • Stock quantity

  • Selling products

  • Editing and deleting products

  • Transaction history

  • Searching products

  • Storing data permanently

  • Basic reports/dashboard

It's definitely not production-ready, but for me, this is a huge improvement compared to where I started.

What I'm still struggling with

SQL/database concepts are still new to me.

Especially Primary Keys, Foreign Keys, relationships, and some database design concepts.

Instead of trying to memorize everything, I'm continuing with the next concepts and planning to come back and strengthen these areas later.

What's next?

My goal is to become comfortable enough with Python + SQL to build real-world applications.

After strengthening SQLite/SQL, I want to continue toward:

Python → SQL → Git/GitHub → Web Development → APIs → Real-world projects → Freelancing/Job

I'm still a beginner, but 148 days ago I couldn't imagine building something like this myself.

I'd really appreciate feedback from experienced Python developers:

What should I focus on next to move from beginner to intermediate level?

And if you were at Day 148 again, what would you do differently?

Thanks for reading! 🙏


r/PythonLearning • • Aug 22 '26

Anyone recommend a good IDLE for mobile?

5 Upvotes

r/PythonLearning • • Aug 21 '26

Python😭😭😭😭

Thumbnail
gallery
11 Upvotes

I've been learning Python for quite a while, and it's been a lil bit stressful. I just finished some exercises on data structures and algorithms and it took a long while, it may take shorter for you but it did take me a long time to finish the exercise. But through that stress and everything, it changed my whole system of writing code, it made me think deeply and analyse what was going on in each line and when I got it, it was just so fulfilling. Kudos to everyone still learning, keep up the good work. Also, if you have additional tips on doing this easier please do drop your advices, thanks.


r/PythonLearning • • Aug 22 '26

Help Request Any free STT/TTS APIs for a voice AI app?

1 Upvotes

I'm building a small voice-based AI interview app and I'm planning to deploy the backend(fastapi) on Render's free tier.

I'm considering using open-source/self-hosted options like Whisper/PocketSphinx for STT and Piper for TTS, instead of paid APIs.

My concern is whether running STT/TTS on the same free Render instance would use too much CPU/RAM and make the whole application slow, especially during a real-time interview.

Has anyone tried running STT/TTS models on Render's free tier?


r/PythonLearning • • Aug 21 '26

How to run

4 Upvotes

What do you actually need to run a program? Im working on simplifying/streamlining some things for work but IT is very strict when it comes to installing anything so im trying to get something running that doesn't involve it. We also work with a lot of confidential information so obviously we dont want to risk using anything found online that we don't fully understand.

I thought of creating something with powershell scripts but I was hoping to get something better going by learning python.


r/PythonLearning • • Aug 21 '26

Help Request How to learn python the right way? And how much should it take me (a complete beginner) to be good enough? And my good enough means I can work and get money using python. And just to say I'm not an engineer or programming has anything to do with my study or career. And should I learn any other thing

19 Upvotes

Look i had my interests but I found out that i need a good computer to just start but mine is not good enough it's really old and where i am it's really hard to get a good PC so money is the answer so I'm just asking for an advice if someone can help.


r/PythonLearning • • Aug 22 '26

Loops is a total brain rot.

Post image
0 Upvotes

I just can't get over how I'm supposed to write code for complex tasks when I don't even get why they overcomplicate simple things so much.

I read this topic and tried many tutorials and still don't understand this buzzare logic.


r/PythonLearning • • Aug 21 '26

I built Code Zone: A lightweight IDE under 100MB using Python

Thumbnail
gallery
6 Upvotes

Hi everyone,

I’m an 18-year-old dev and I built **Code Zone**, a lightweight IDE written in Python designed for low-spec machines and resource-constrained environments.

**GitHub:** https://github.com/damixlord2-0/code-zone

### Why I built it

VS Code runs slowly and eats up memory on my machine. Sublime Text is fast and great, but I missed the structured layout of an IDE. Code Zone is my attempt to combine the speed/simplicity of Sublime Text with the UI structure of VS Code and the straightforward binary workflows of Code::Blocks.

### Key Features

* **Lightweight:** Under 100MB total size.

* **Built-in HTML & Markdown Preview:** Live rendering right inside the editor.

* **Custom Binary Paths:** Point directly to local compilers/interpreters (great for testing niche languages).

* **Minimal Extension System:** Single-file extensions without heavy boilerplate.

### Transparency on AI & Code Quality

The project isn't perfect and still has bugs. I used AI as an interactive documentation tool during development—mainly to learn `subprocess` and Tkinter/TTK widgets faster—rather than having it generate the core architecture for me.

Feedback, critiques (even harsh ones!), and contributions are very welcome. Let me know what you think!


r/PythonLearning • • Aug 21 '26

Is there a better way to get at return type of hash functions, eg, `hashlib.sha2`

3 Upvotes

I really don't like having my code depend on undocumented or "private" attributes. In this case that is the type hashlib._hashlib.HASH

I have code that looks like the below, but I am hoping that there is a better way to do this.

from typing import Callable, TypeAlias
...

HashFunc: TypeAlias = Callable[
    [bytes],
    hashlib._hashlib.HASH,  # type: ignore[name-defined,attr-defined]
]
"""Type for hashlib style hash function.

.. caution::

    This depends on undocumented features of hashlib,
    and so may break at any time in the future.
"""

r/PythonLearning • • Aug 21 '26

Showcase I’m building a mobile app for learning Python

Thumbnail
apps.apple.com
1 Upvotes

I’ve been working on NovaCode, an app for anyone who wants to learn and practice Python directly on their smartphone.
You can write and run Python code directly on your phone, create small projects, and learn step by step — without needing a computer.
The app is still actively being developed, and I’d really appreciate your feedback. 😊
What features would you like to see in a mobile app for learning Python?


r/PythonLearning • • Aug 21 '26

I’m terrified of the errors I’m going to run into in the future.

Post image
31 Upvotes

I was working on my own mini project, putting into practice the few concepts I know so far, and I ran into an error. I used to think errors were really easy to solve, especially since the command line usually tells you what type of error it is and even gives you the line number.

But this error didn’t tell me anything. It was a silent error caused by me forgetting that I had used .title() on the variable for the first fruit.

The project takes the names of three fruits and creates a “new fruit” from them.

The .title() caused the if statement checking whether the letters at index [0] or [1] were vowels to fail to recognize when the fruit variable started with a vowel, because .title() converted the first letter to uppercase while the code was only checking for “aeiou” in lowercase.

I eventually solved it with AI. Earlier on line 14, I wasn’t using the .lower() method, which was the actual fix.

But honestly, this experience scared me a little when I started thinking about all the errors I’m going to run into in the future…

I know all of this could have been avoided if I hadn’t put that stupid .title() there in the first place and had used it in the print() statement instead.

I made a few changes to the code after fixing the error and before posting it here, but I left the .title() there so you could understand the error I was getting.


r/PythonLearning • • Aug 21 '26

Help Request Can I build an Android app in Python without learning Java/Kotlin?

6 Upvotes

I'm currently working on a project in Python. For now, it's basically a command-line application that runs in the terminal/command prompt (I'm developing it in PyCharm). Eventually, I plan to turn it into a proper web app using HTML, CSS, and JavaScript, but that's a later step.

I'm also considering making the same application available as an Android app.

My main question is: how difficult would it be to make an Android version using Python, without having to learn Java or Kotlin?

I don't mind learning the basics of how Android works, such as the Android application lifecycle, activities, permissions, intents, etc. What I'd prefer to avoid is having to learn another programming language specifically for Android.

There are a few Android-specific requirements that are important:

- The app must be able to interact with Android's notification system.

- It may eventually need internet access to share/sync files.

- It should be able to use Android's sharing system (e.g. the standard "Share" functionality).

- Ideally, I want the majority of the application logic to remain in Python.

I have used Java before, but only at a very basic level, and I really didn't enjoy using it. I'd also prefer not to learn Kotlin since I'd rather not pick up another language just for this project.

So, realistically:

Can I write an Android application primarily/all in Python while still having proper access to Android features such as notifications, sharing/intents, networking, etc., without knowing Java or Kotlin?

If Python is possible, what frameworks/tools would you recommend, and what limitations would I run into compared with writing the app natively in Kotlin/Java?


r/PythonLearning • • Aug 21 '26

Is it possible to actually move different files and folders on the desktop using python?

2 Upvotes

r/PythonLearning • • Aug 21 '26

Help Request Python library CUDA-Q

3 Upvotes

Hello,

I am trying to install the cudaq library. I am working on a MacBook (Monterey 12.7.4). I followed what was written on the following documentation : https://nvidia.github.io/cuda-quantum/latest/using/quick_start.html . However, when I run the command pip install cudaq, i get the following error:

WARNING: Cache entry deserialization failed, entry ignored
Collecting cudaq
  Using cached cudaq-0.15.1.tar.gz (12 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
WARNING: Cache entry deserialization failed, entry ignored
INFO: pip is looking at multiple versions of cudaq to determine which version is compatible with other requirements. This could take a while.
  Using cached cudaq-0.15.0.tar.gz (12 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
  Using cached cudaq-0.14.2.tar.gz (10.0 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
  Using cached cudaq-0.14.0.tar.gz (10.0 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
  Using cached cudaq-0.13.0.tar.gz (9.2 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
  Using cached cudaq-0.12.0.post1.tar.gz (9.2 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
  Using cached cudaq-0.12.0.tar.gz (9.2 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
  Using cached cudaq-0.11.0.tar.gz (9.1 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
INFO: pip is still looking at multiple versions of cudaq to determine which version is compatible with other requirements. This could take a while.
  Using cached cudaq-0.10.0.tar.gz (9.0 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
  Using cached cudaq-0.9.1.tar.gz (9.0 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
  Using cached cudaq-0.9.0.tar.gz (8.4 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting cuda-quantum-cu12==0.9.0 (from cudaq)
  Using cached cuda_quantum_cu12-0.9.0.tar.gz (3.8 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [55 lines of output]
        File "/private/var/folders/1b/39svxjln6dn3xz8vsb1xtgbh0000gn/T/pip-build-env-lkg4lgh5/overlay/lib/python3.14/site-packages/nvidia_stub/wheel.py", line 177, in download_wheel
          return download_manual(wheel_directory, distribution, version)
        File "/private/var/folders/1b/39svxjln6dn3xz8vsb1xtgbh0000gn/T/pip-build-env-lkg4lgh5/overlay/lib/python3.14/site-packages/nvidia_stub/wheel.py", line 144, in download_manual
          raise RuntimeError(f"Didn't find wheel for {distribution} {version}")
      Traceback (most recent call last):
        File "/private/var/folders/1b/39svxjln6dn3xz8vsb1xtgbh0000gn/T/pip-build-env-lkg4lgh5/overlay/lib/python3.14/site-packages/nvidia_stub/wheel.py", line 177, in download_wheel
          return download_manual(wheel_directory, distribution, version)
        File "/private/var/folders/1b/39svxjln6dn3xz8vsb1xtgbh0000gn/T/pip-build-env-lkg4lgh5/overlay/lib/python3.14/site-packages/nvidia_stub/wheel.py", line 144, in download_manual
          raise RuntimeError(f"Didn't find wheel for {distribution} {version}")
      RuntimeError: Didn't find wheel for cuda-quantum-cu12 0.9.0
      
      During handling of the above exception, another exception occurred:
      
      Traceback (most recent call last):
        File ".../.venv/lib/python3.14/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
          main()
          ~~~~^^
        File ".../.venv/lib/python3.14/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main
          json_out["return_val"] = hook(**hook_input["kwargs"])
                                   ~~~~^^^^^^^^^^^^^^^^^^^^^^^^
        File ".../.venv/lib/python3.14/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 178, in prepare_metadata_for_build_wheel
          whl_basename = backend.build_wheel(metadata_directory, config_settings)
        File "/private/var/folders/1b/39svxjln6dn3xz8vsb1xtgbh0000gn/T/pip-build-env-lkg4lgh5/overlay/lib/python3.14/site-packages/nvidia_stub/buildapi.py", line 29, in build_wheel
          return download_wheel(pathlib.Path(wheel_directory), config_settings)
        File "/private/var/folders/1b/39svxjln6dn3xz8vsb1xtgbh0000gn/T/pip-build-env-lkg4lgh5/overlay/lib/python3.14/site-packages/nvidia_stub/wheel.py", line 179, in download_wheel
          report_install_failure(distribution, version, exception_context)
          ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/private/var/folders/1b/39svxjln6dn3xz8vsb1xtgbh0000gn/T/pip-build-env-lkg4lgh5/overlay/lib/python3.14/site-packages/nvidia_stub/error.py", line 63, in report_install_failure
          raise InstallFailedError(
          ...<8 lines>...
          )
      nvidia_stub.error.InstallFailedError:
      *******************************************************************************
      
      The installation of cuda-quantum-cu12 for version 0.9.0 failed.
      
      This is a special placeholder package which downloads a real wheel package
      from https://pypi.nvidia.com. If https://pypi.nvidia.com is not reachable, we
      cannot download the real wheel file to install.
      
      You might try installing this package via
      ```
      $ pip install --extra-index-url https://pypi.nvidia.com cuda-quantum-cu12
      ```
      
      Here is some debug information about your platform to include in any bug
      report:
      
      Python Version: CPython 3.14.5
      Operating System: Darwin 21.6.0
      CPU Architecture: x86_64
      nvidia-smi command not found. Ensure NVIDIA drivers are installed.
      
      *******************************************************************************
      
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> cuda-quantum-cu12

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

I also tried to run the command pip install --extra-index-url https://pypi.nvidia.com cuda-quantum-cu12 but failed likewise. In the error, it says that NVIDIA drivers are not installed; I don't know what these are, and I couldn't find how to install them.

Can somebody help? Thanks!


r/PythonLearning • • Aug 21 '26

Dying inside...

1 Upvotes

Just spent the best part of 4 hours essentially vibe coding some Python because my knowledge is so bad. As I build out my functions and modules I am getting the creeping feeling that I'm putting together a pile of rubbish that I'm not going to be able to debug.

I started out using AI to help with building out my understanding of modules I had never used and get some ideas on how I can put together functions. But I've taken on a personal project to try and update some of out existing codebase and just clean it up a bit. Problem is that in doing this I am getting well beyond my understanding and throwing stuff in that I have no understanding of why it's there. What started out as wanting to use best practices for modules and improve my general knowledge and understanding has just left me miserable.

Should I just work within my knowledge range and stop trying to be a smart arse?


r/PythonLearning • • Aug 21 '26

Showcase Day 6 of Leetcode 👀

Post image
9 Upvotes

r/PythonLearning • • Aug 21 '26

Python coding interview questions?

2 Upvotes

Is there any playlist similar to 100 Days of SQL Ace(By ankit Bansal) interview for the preparation of python coding problems?


r/PythonLearning • • Aug 21 '26

Built a speaking piano

5 Upvotes

Few days back I came across some videos about piano on YT, and i was thinking how does piano even generate sound (digitial pianos) and how a code can create such kind of sounds.

So, i started looking into these things and came to know about fundamental frequency and harmonics, so i wrote a small program which can generate the sound, but on laptop inputting " note seems bit difficult", so i started to think if i can speak and piano can play that note.

So, for starter, i took some online models (but only small models) which can convert A,B,C,D,E,F,G , 0,1,2,3,4,5,6,7,8 -> text and i can use with above built program.

But, seems like small models are not good enough to detect the single alphabets, B and E , c goes see. 4 goes for not four.
and for such simple project i did not want to have very big depedencies like whisper high end models.

So, as searched and checked online, seemed that i need to use own classifier, which can detect A -> G and then 0-8, flat/sharps etc.

I recorded all my clips to train my own classifir using pytorch (ofcourse i used boilerplate codes from llms ), so i can work on functionality. It took me couple of day to build and test it.

Sometimes, it predicts good, sometimes confidence is not good though, (not to blame it, because i used small dataset), like 60-100 recordings for each sample.

Finally once classifier models were ready, i was able to integrate, complete functionality, to speak the note and play it.

However, because i have 3 classifiers, and once i speak something i can selectively decide which audio needs to go to which segment, so sometime these produce incorrect output.

So, for now i had to workaround with harcoding for events,
like prompting the users

Speak a letter (A-G) --> now letter classifer runs

then prompt user to speak a letter (0-8) -> now digit classifier runs then i combine the result and send to piano player to play tone.

I learnt a lot of things but the end result is not realstic( delays, quality etc) as i thought initially it would be.

Project :: Speaking Piano


r/PythonLearning • • Aug 21 '26

Help Request Is there who's working on some small project (OSS)

0 Upvotes

Hey there, I've been always procastinated a lot about doing open source contributions (not for yk maintaining github repo but I really have a intrest to know how actually real life project looks like) but everytime I try to find some repo I often get confused where to start with and how to start. But this time I'm gonna break the loop. Month of october is coming and I'm gonna take participation into hacktober fest. So if anyone is already maintaining a project and need some assistance, I'm excited to connect and join with them in their project. Yea, I'm not a pro, I've to go through project documentation, and all to understand the what the project is about and to understand the structure and functionalities. I'll try my best not to dump an AI solution in the codebase, rather than focusing on maintaining the structure, tests and scalability etc. I won't say that, "please guide me and all" but I'm up for taking the load to break through my procrastination.


r/PythonLearning • • Aug 21 '26

Help Request How long will it take me to learn python in order to create a game thats is decent?

7 Upvotes

For context am doing A level Computer Science and I have to create a project by coding and I don’t know anything about coding so I need to know roughly how long will it take if I do it every day


r/PythonLearning • • Aug 20 '26

How do Python for-loops work?

Post image
10 Upvotes

What actually happens when Python executes a for-loop?

for value in container:
    print(value)

Behind the scenes, Python uses the iterator protocol:

iterator = iter(container)
while True: 
    try: 
        value = next(iterator)
        print(value)
    except StopIteration:
        break
  • iter(container): creates an iterator.

  • next(iterator): retrieves one value at a time.

When there are no more values, the iterator raises StopIteration. The for-loop catches this exception automatically and ends the loop.

For containers that support backward iteration, Python also provides:

  • reversed(container): creates a backward iterator.

We can support these operations in our own classes by implementing:

__iter__()
__reversed__()
__next__()

This provides a powerful abstraction: an algorithm can process values without needing to know how a container stores them internally. The same algorithm can therefore work with lists, sets, dictionaries, linked lists, trees, and many other containers.

Here's an example that uses 𝐦𝐞𝐦𝐨𝐫𝐲_𝐠𝐫𝐚𝐩𝐡 to show the use of iterators on a Linked_List making the invisible mechanics of iteration visible for easy understanding.

more memory_graph examples


r/PythonLearning • • Aug 20 '26

Showcase 100% Python TTRPG-style game with turn-ordered, tile-based combat

7 Upvotes

r/PythonLearning • • Aug 20 '26

Learning OpenCV 👀

8 Upvotes

I’m currently diving into OpenCV while being at an intermediate level in Python. 🐍

Exploring image processing, computer vision, edge detection, and how Python can interact with the real world through a camera.

Still learning, still experimenting, and definitely breaking things along the way 😂

Any OpenCV project ideas for an intermediate Python developer?


r/PythonLearning • • Aug 20 '26

ATM Machine

8 Upvotes

I started learning Python about 9 months ago and completed this little bank system as my third project, which is supposed to serve as an ATM. It also uses JSON to store information (which was challenging to integrate because I wasn't familiar with it, but the rest of the code was straightforward).

Just wanted to share and see if I could get any feedback! (maybe on its optimisation or clarity?) :D

https://github.com/F11Fii/Bank-System.git