-
-
Save amankharwal/7dbe5bd21faadf9e4e90c2b0204d3b17 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
passlen = int(input("enter the length of password")) | |
s="abcdefghijklmnopqrstuvwxyz01234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ!@#$%^&*()?" | |
p = "".join(random.sample(s,passlen )) | |
print(p) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment