import random
class Password():
list_digit=['1','2','3','4','5','6','7','8','9']
list_alpha=['a','b','c','d','e','f','g','h','i']
list_character=['!','@','#','$','%']
def makepass11():
element1=random.choice(list_digit)
element2=random.choice(list_alpha)
element3=random.choice(list_character)
element4=random.choice(list_digit)
element5=random.choice(list_alpha)
element6=random.choice(list_character)
element7=random.choice(list_digit)
element8=random.choice(list_alpha)
element9=random.choice(list_character)
element10=random.choice(list_digit)
element11=random.choice(list_alpha)
element12=random.choice(list_character)
return element1+element2+element3+element4+element5+element6+element7+element8+element9+element10+element11+element12
firstpass=Password()
firstpass.makepass11()
The error I am getting is:
“Traceback (most recent call last):
File “script.py”, line 25, in
firstpass.makepass11()
TypeError: makepass11() takes 0 positional arguments but 1 was given”