r/PythonLearning • • Jul 29 '26

Command line password generator tool

Thumbnail
github.com
0 Upvotes

Who enjoys opening a browser/GUI every time you need to make a secure password? I sure don't. That's what gave me the idea to create this simple random password generator tool that can be used entirely in the command line (although I'm sure something like this already exists) with system arguments.

I also made something that I guess you could call an installer.

Using arguments you can set the length of your password, choose what type of characters you want in the password (letters, digits and punctuation) and choose whether or not to copy the password to your clipboard (on by default). You can read the README.md file for a guide on how to use it.

NOTE: I know that the actual main program is compressed in a gzip file on GitHub which will impede you from reading it's source code. I hope to make a way around this later.

Why did I make this? Mostly boredom. I don't have any aspirations of being a software developer or anything involving making huge projects, however I am interested in cybersecurity. I sort of just thought to myself that I don't have a convenient way of generating random passwords. Keeping my Python skills up to scratch and improving them will prove useful in the future however, I believe, as I often find simple scripting useful.

Where I want to improve (looking back at making this):

- Get better at using sys and os modules as they have proven very useful

- Improve at using Git

- Probably figure out a better installation method for users

Overall, although I don't script much, this was pretty easy project for me, but nonetheless I learnt some good things about Python operating system and file interaction.


r/PythonLearning • • Jul 29 '26

I want to learn programming

0 Upvotes

I am a Btech Cse ( cybersecurity) student and want to learn programming but I am confuse where to start anyone can help where to start.


r/PythonLearning • • Jul 28 '26

Help Request Repeat until keypress

2 Upvotes

I want to have the terminal keep typing something until any key is pressed. I'm fiddling around but have yet to figure out a solution.

Edit: Hey thank you all. I'm kinda a begginer. After a lot of fiddling I got something that works for me.


r/PythonLearning • • Jul 28 '26

It's a FastAPI starter with SQLAlchemy, Alembic, and auth support, with Docker coming next.

Thumbnail
gallery
2 Upvotes

r/PythonLearning • • Jul 28 '26

Help Request Any free courses to learn Socket?

3 Upvotes

Does anyone know any free courses to learn the socket tool in python?

ive been trying to learn socket for a while, i know some of the basics with help from chatGPT, but now i feel like im not really learning anything new.

if anyone have any free courses or good youtube channels, pls tell me!


r/PythonLearning • • Jul 28 '26

Looking for a Python Course for a Motivated Beginner (with Room to Grow) – Recommendations Welcome!

1 Upvotes

Hi everyone 👋

I'm hoping to get some recommendations for a young student who has recently completed their O/Ls and is seriously considering a future in IT. They're genuinely excited about learning Python, and I'd love to help them find the best possible starting point.

We're looking for a course that's beginner-friendly but also provides a clear pathway to more advanced topics over time. Ideally, it would build a strong foundation in programming while eventually introducing areas such as data analysis, automation, or even data science.

I've explored some excellent online options, including courses from Udemy and Mosh Hamedani. However, there's one challenge: this student finds it difficult to stay engaged with purely online learning. While self-paced courses are convenient, they tend to learn much better in an interactive environment where they can ask questions, receive immediate feedback, and stay motivated alongside other learners.

Because of this, I'm particularly interested in in-person Python classes, training programs, or private coaching opportunities. Courses that combine theory with practical, hands-on projects would be especially valuable, as they seem to be the best way to keep learning enjoyable and meaningful.

If you've attended a great Python course—or know of a training center, institute, community program, or tutor you'd confidently recommend—I would greatly appreciate hearing about your experience. Any insights into teaching quality, course structure, or student engagement would be incredibly helpful.

Thank you so much for taking the time to read this and share your recommendations. I truly appreciate the help, and I'm sure your advice will make a big difference in helping an aspiring future developer get started on the right path. 🙏🐍

Looking forward to your suggestions! 😊


r/PythonLearning • • Jul 28 '26

Help Request Help i'm new to ttkbootstrap.

Thumbnail
gallery
1 Upvotes
I'm trying to create a program that opens a ttk window; when a button is pressed, it should open a tab containing a .jpg image. It was working at first, but I modified the code slightly to add more tabs. I'm not sure what I changed, but now it doesn't show the image—just an empty window.

I think it might be related to an error appearing in the terminal (I don't recall seeing it before). I even tried reinstalling Pillow to see if that would help, but nothing changed.

r/PythonLearning • • Jul 28 '26

Help Request Console won't do anything on Mimo

Post image
11 Upvotes

I really need help. For some reason the console on Mimo won't do anything no matter the code. Even when coding only 'print("Hello")' it gives me the same 'prompt' on any project.


r/PythonLearning • • Jul 28 '26

Help Request Learning Python

9 Upvotes

Hey , I am learning python ( electrical Engineer with no prior coding experience).

I have gone through the basics but still having difficulty writing the code. It seems like my brain freezes while writing the code.

I don't find the issue in logic and all, but writing code seems very difficult

Any suggestions how to overcome this issue.


r/PythonLearning • • Jul 27 '26

Not sure why it is not multiplying correctly

Post image
40 Upvotes

Just started programming today and was messing around when this happened. It is saying that 22.99 * 5 is 114.9499999999999 instead of 114.95. It does the same when I enter any number with a non-zero integer after the decimal. It works completely fine with whole numbers though. If you have any Idea why, please let me know.