Skip to content

Instantly share code, notes, and snippets.

@MrKrishnaAgarwal
Created August 4, 2022 16:48
Show Gist options
  • Save MrKrishnaAgarwal/03a7393a77e973bd7a1d416417a009bb to your computer and use it in GitHub Desktop.
Save MrKrishnaAgarwal/03a7393a77e973bd7a1d416417a009bb to your computer and use it in GitHub Desktop.
abcdefghijklmnopqrstuvwxyz01234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ!@#$%^&*()?
@MrKrishnaAgarwal
Copy link
Author

import random
password = int(input("enter the length of password: "))
s="abcdefghijklmnopqrstuvwxyz01234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ!@#$%^&*()?"
p =  "".join(random.sample(s,password ))
print (p)
print ("Thank you for using the Random Password Generator")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment