X Tutup
Skip to content

Latest commit

 

History

History
21 lines (12 loc) · 385 Bytes

File metadata and controls

21 lines (12 loc) · 385 Bytes

PassWord Generator

txt2img-stable2

def password():
    
    password =  string.ascii_letters + string.digits + string.punctuation

    len_ = input("Number of characters : ")
    int_len = int(len_)
    password2 = "".join(random.sample(password , int_len))
    print("Your password is : " + password2)
    

while True:
    password()
    
X Tutup