Skip to content

Instantly share code, notes, and snippets.

@kuharan
Created March 4, 2018 18:48
Show Gist options
  • Save kuharan/00765cefb8c91fdea84a98b9e3e20407 to your computer and use it in GitHub Desktop.
Save kuharan/00765cefb8c91fdea84a98b9e3e20407 to your computer and use it in GitHub Desktop.
A Simple Password Generator in Python
from random import *
import string
min = 10
max = 20
combination = string.ascii_letters + string.digits + string.punctuation
var_pass = "".join(choice(combination) for x in range(randint(min, max)))
print("Random Password String: ", var_pass)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment