Oct-10-2018, 07:11 PM
(Oct-10-2018, 04:35 PM)nilamo Wrote:char_list8
has it's value set to whateverchars[number8][0]
is, but it's value doesn't get updated ifnumber8
happens to change. They're two unrelated things. If you wantchar_list8
to change, you have to also changechar_list8
. Programming would be incredibly difficult if all your variables changed their values whenever anything happened to unrelated other parts of your code.
Looks like OP believes thst he performs sort of reference binding from index to character set - which may be with a proper wrapper class, but not like that.
Looks like brute-force password breaker - which, in theory, should be implmented by a recursive function. Though in Python, with
itertools.product
, it is rather simple in a loop
Test everything in a Python shell (iPython, Azure Notebook, etc.)
- Someone gave you an advice you liked? Test it - maybe the advice was actually bad.
- Someone gave you an advice you think is bad? Test it before arguing - maybe it was good.
- You posted a claim that something you did not test works? Be prepared to eat your hat.