(sorry for my english)
Guys, my class in Python runs once
import csv, random class myPassword: azlower = "abcdefghijklmnopqrstuvwxyz" azupper = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" vowel = "aeiouAEIOU" simbol = "!@#$%*" passw = random.sample(range(9), 2) passw = ''.join(map(str, passw)) passw += random.choice(simbol) passw += random.choice(azupper) passw += random.choice(vowel) passw += random.choice(azlower) passw += random.choice(simbol) passr = random.sample(range(9), 3) passw += ''.join(map(str, passr)) for i in range (0,2): print (myPassword.passw) This code runs the same password in every for. How to run the class again? Tkx!
passwin your function.myPassword.passwis just a static class variable. You may want todefa method or just simply use a function.