Advertisement
Spocoman

Password Generator

Mar 15th, 2022
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.57 KB | None | 0 0
  1. a = int(input())
  2. b = ord(input())
  3. c = ord(input())
  4. d = int(input())
  5. e = int(input())
  6. f = int(input())
  7. counter = int(input())
  8.  
  9. for i in range(1, a + 1):
  10.     for j in range(65, b + 1):
  11.         for k in range(97, c + 1):
  12.             for l in range(1, d + 1):
  13.                 for m in range(1, e + 1):
  14.                     for n in range(1, f + 1):
  15.                         counter -= 1
  16.                         if counter == 0:
  17.                             print(f"{i}{chr(j)}{chr(k)}{l}{m}{n}")
  18.                             exit(0)
  19.  
  20. print("No password on this position")
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement