Answers for "how to code Random Password Generator in python script"

1

python random password generator

import random

alph = list('ABCDEFGHIJKLMNOPQRSTUVWXYZ
             abcdefghijklmnopqrstuvwxyz
             1234567890 !@#$%^&*(){}[]<>,.')
out = ''
for char in string:
    out += random.choice(alph)
    
print(out)
Posted by: Guest on April-08-2020
3

python password generator

import random
import string

x = str(input("Do you want a password? y/n "))

list = []
if x == "y":
    print("Alright!")
    for i in range(16):
        _1 = random.choice(string.ascii_letters)
        _2 = random.randint(1, 9)
        list.append(_1)
        list.append(_2)
else:
    print("ok")


def convert(list): 
      
    s = [str(i) for i in list] 
      
    res = "".join(s) 
      
    return(print(res))



convert(list)
Posted by: Guest on February-12-2021

Code answers related to "how to code Random Password Generator in python script"

Python Answers by Framework

Browse Popular Code Answers by Language