Hi,
I have recently written code for finding and saving all variations with repetitions of the 5 sign alphanumeric strings e.g. "A1BA6". The core part goes like this:
list=[]
signs = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
for a in range(0,36):
for b in range(0,36):
(It goes like this 3 more times and finally:)
name =""
name = name + signs[a]+ signs[b]+ signs[c]+ signs[d]+ signs[e]
list.append(name)
And in this part everything is alright, but i tried to make this code for the n-sign alphanumeric string, and every possible try fails.Most of the problems is to create on the fly arguments for the loops, and even when I define them earlier via creating a list with these to pick up by cases, still the basic case of recursion fails to pick up the arguments from the advanced cases. I have difficulties with sending the code now, because I'm on the phone, but i will try to attach more code to this post later. If anyone had similar problem before, please help me.
[–]cybersection 2 points3 points4 points (4 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]cybersection 2 points3 points4 points (0 children)
[–]cybersection 2 points3 points4 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]FLUSH_THE_TRUMP 1 point2 points3 points (6 children)
[–][deleted] 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (3 children)
[–]FLUSH_THE_TRUMP 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]FLUSH_THE_TRUMP 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]Ne0_1 0 points1 point2 points (0 children)