Skip to content

Commit 8d43f77

Browse files
authored
Merge pull request #155 from Dileep2608/patch-1
Create Strong_Password_Generator.py
2 parents e29e623 + 6a73597 commit 8d43f77

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Strong_Password_Generator.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import random
2+
import string
3+
4+
n = int(input("Enter the length of password : "))
5+
password_characters = string.ascii_letters + string.digits + string.punctuation
6+
password = ''.join(random.choice(password_characters) for i in range(n))
7+
print("Password = {}".format(password))

0 commit comments

Comments
 (0)