Making A Password Generator In Python
Code Output:
Source Code:
from random import * characters=["q","w","e","r","t","y","u","i","o","p","l","k","j","h","g","f","d","s,","a","z","x","c","v","b","n","m"] nums=["1","2","3","4","5","6","7","8","9","0"] special_characters=["!","@","#","$","%","&"] lengthofpassword=int(input("Enter length of password required:"))for i in range(lengthofpassword):i=choice(characters+special_characters+nums) print(i,end="")
No comments: