Advertisement
Spocoman

Stupid Password Generator

Oct 7th, 2023 (edited)
1,781
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. n = int(input())
  2. l = int(input())
  3.  
  4. for a in range(1, n + 1):
  5.     for b in range(1, n + 1):
  6.         for c in range(97, 97 + l):
  7.             for d in range(97, 97 + l):
  8.                 for e in range(max(a, b) + 1, n + 1):
  9.                     print(f"{a}{b}{chr(c)}{chr(d)}{e}", end=' ')
  10.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement