Python Forum

Full Version: help me to make my password list in python >>>
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hii am new here

i want to make my own password listbut i have some problems

i write this

"""Start
import itertools

names= ["sushi","messi","barcelona","2022","worldcup","pes","fifa","ronaldo"]

pas_words = itertools.permutations(names)

with open ("pass.txt","a") as myfile:

for pas in pas_words:

pas_word ="".join(pas)

myfile.write(pas_word + "\n")
"""""finish

this code using all the 8 name to make passList

I Want the code use 7 name and 6 and 5 names with all possibility to make passList

how can i write to work ?????