0

I am currently working on a code decoder for fun and I managed to make a decoder of four letters or numbers in this form:

For w in string.printable:
    For x in ...:
        For y in ...:
            For z in ...:
                 If [w,x,y,z] = code :
                     Print (w,x,y,z)

What I would like is to have a function to make this possible for any amount of "for loops" layers for codes of any length. Is that possible?

Sionae
  • 23
  • 6

0 Answers0