DEV Community

Aaron Shenny
Aaron Shenny

Posted on

My Frist project

My Frist project was 'Password Generator'.
What is the use of password generator?
A password generator is a software tool that creates random or customized passwords for users. It helps users create stronger passwords that provide greater security for a given type of access..
So i created this using Python.

Here is the code.

import random
lower = "abcdefghijklmnopqrstuvwxyz"
upper = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
number = "0123456789"
symbol = "&-_+=#"
all = lower+upper+number+symbol
length = 10
password = "".join(random.sample(all,length))

print(password)

Comment your suggestions.
Thank you.

Top comments (0)