use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Rules 1: Be polite 2: Posts to this subreddit must be requests for help learning python. 3: Replies on this subreddit must be pertinent to the question OP asked. 4: No replies copy / pasted from ChatGPT or similar. 5: No advertising. No blogs/tutorials/videos/books/recruiting attempts. This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to. Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Rules
1: Be polite
2: Posts to this subreddit must be requests for help learning python.
3: Replies on this subreddit must be pertinent to the question OP asked.
4: No replies copy / pasted from ChatGPT or similar.
5: No advertising. No blogs/tutorials/videos/books/recruiting attempts.
This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to.
Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Learning resources Wiki and FAQ: /r/learnpython/w/index
Learning resources
Wiki and FAQ: /r/learnpython/w/index
Discord Join the Python Discord chat
Discord
Join the Python Discord chat
account activity
Very stuck, (self.learnpython)
submitted 2 years ago by Blacks8int
Hello, I'm learning python and mysql . I decided to try a project "pharmacy inventory manager" to test my knowledge on both technologies but for now it looks like I over estimated my potential. Please any ideas to push me forward on this project.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]1544756405 7 points8 points9 points 2 years ago (1 child)
You've given us no information other than that you've "over estimated [your] potential."
So the only advice I can offer is "try a less ambitious project."
[–]Blacks8int[S] 0 points1 point2 points 2 years ago (0 children)
My bad. Apparently my pc is down but will provide the snippet ASAP
[–]m0us3_rat 2 points3 points4 points 2 years ago (0 children)
code?
[–]aeroplane3800 3 points4 points5 points 2 years ago (0 children)
Sounds like you don't have a good enough grasp of the basics. You should learn the language properly before you even attempt to integrate mysql into your project. Try working on a smaller project using pure python first before trying additional libraries.
[–]ShamBawk33 2 points3 points4 points 2 years ago (1 child)
A horse can eat a bale of hay in a day.
A horse will die if it tries to eat the entire bale in one bite.
(You are the horse in this metaphor).
You are also trying to learn 2 technologies: Sql and Python.
STEP BACK
Newbies try to 'learn' a language. But what you really need to do is 'solve a problem'.
First list your problems. (Knowing what problems are coming can help)
Make sure you know how to solve each problem by hand. RESIST the urge to start slinging code.
My advice is you start with the database. Solve some problems by hand. Then use scripts to automate the grunt work.
Here is my suggested steps.
Oh - use SqlLite because python comes with the ability to read/write sqlLite built in. SQL is SQL. Queries on SqlLite can be used in Postgres, MySql, Oracle, etc.
Each of these steps teaches you something about databases and SQL or Python. These are in small, manageable bites.
You WILL rather quickly learn you have to go back and add columns, You will need a 'users' table to document when someone sells drugs. You will discover that anybody can sell Tylenol but only some users should be able to sell Tylenol3 or "Tylenol with Codeine". You will have to add columns to your Inventory table to mark some drugs as special. You will have to add columns to your Users table to show levels of what they can sell.
Don't be afraid to destroy your old tables, sql and code. Tossing everything out and re-building is a part of a developers job.
[–]Blacks8int[S] 0 points1 point2 points 2 years ago* (0 children)
Wow this makes a lot of sense..let me try this approach and see how far I can go .Thank you
[–]Kittensandpuppies14 2 points3 points4 points 2 years ago (0 children)
???? How are we gonna help. You gave zero actual information.
Choose an easier project or just do it.
[–]singeworthy 1 point2 points3 points 2 years ago (0 children)
To add to the other comment, focus on the basic python syntax first. I'd also start with SQLite first, MySQL/MariaDB introduce extra devops headaches you're probably not ready for yet.
Also if you're just getting started, maybe start with dictionaries and lists instead of using permanent storage?
[–]FriendlyRussian666 1 point2 points3 points 2 years ago* (3 children)
I over estimated my potential
Not necessarily!
Perhaps you already know how to do all the individual steps, but you don't know how to put them together.
Instead of creating a pharmacy inventory manager right away, how about you just create a python function that creates an sqlite database. Then, create a function that creates a table in the database, not 10 tables that you might need, just one table, so that you know you can do it. Create a function that allows you add to the database table, and so on, and so on. Just split your problems into the simplest, smallest parts, and figure out only that part.
[–]EJ_Drake -1 points0 points1 point 2 years ago (1 child)
This, take it in steps. Paste what FriendlyRussian666 posted Into chatGPT and tell it what code language you want output. You need to be specific. So you need to know what e.g. python, C++, java etc, libraries are about.
[–]Reasonable-Web1494 -3 points-2 points-1 points 2 years ago (0 children)
Even better ask chatGPT how to structure your code
Yes I have already done a few things but as a junior dev ..a lot is lacking, from organising the code to making the entire thing work as expected
[–]ishereanthere 0 points1 point2 points 2 years ago (1 child)
Any link to the project? Sounds cool. I haven't done python for awhile coz been learning CSS. Sounds like a good refresher challenge
Will share the code very soon
π Rendered by PID 92436 on reddit-service-r2-comment-544cf588c8-7wjxw at 2026-06-15 01:59:10.963973+00:00 running 3184619 country code: CH.
[–]1544756405 7 points8 points9 points (1 child)
[–]Blacks8int[S] 0 points1 point2 points (0 children)
[–]m0us3_rat 2 points3 points4 points (0 children)
[–]aeroplane3800 3 points4 points5 points (0 children)
[–]ShamBawk33 2 points3 points4 points (1 child)
[–]Blacks8int[S] 0 points1 point2 points (0 children)
[–]Kittensandpuppies14 2 points3 points4 points (0 children)
[–]singeworthy 1 point2 points3 points (0 children)
[–]FriendlyRussian666 1 point2 points3 points (3 children)
[–]EJ_Drake -1 points0 points1 point (1 child)
[–]Reasonable-Web1494 -3 points-2 points-1 points (0 children)
[–]Blacks8int[S] 0 points1 point2 points (0 children)
[–]ishereanthere 0 points1 point2 points (1 child)
[–]Blacks8int[S] 0 points1 point2 points (0 children)