Created
November 26, 2018 01:14
-
-
Save terrazasrazo/9c021d20de03e8503524a76c96a30c53 to your computer and use it in GitHub Desktop.
Generate 300 random password with numbers, lower and upper cases and save into csv file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import string | |
import random | |
def id_generator(size=10, chars=string.ascii_letters + string.digits): | |
return ''.join(random.choice(chars) for i in range(size)) | |
file = open("password.csv","w") | |
for i in range(300): | |
file.write(id_generator() + ',\n') | |
file.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment