r/pythonhelp • u/NindenDaily • Apr 16 '21
HOMEWORK Python Password Generator Program
Hello everyone! I am currently creating a randomly generated password program for a school project. I am wanting to make it so that if you answer the question “What should the length of the password be?” with something besides an integer, it will display and error message and then ask you the question again. Does anyone have any tips on how I can start to set this up? Thank you!
I have the link to my GitHub which has the code right here: https://github.com/snowiestdaisy56/Python---Password-Generator/blob/657c3ca6fafd6316071e9425c615c955e0f16cc7/main.py
This is my first time ever using GitHub so hopefully I did it correct!
4
Upvotes
1
u/MrPhungx Apr 17 '21 edited Apr 17 '21
I guess you could do something like this: