SHARE
TWEET

password_generator

a guest Feb 24th, 2020 113 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. n = int(input())
  2. l = int(input())
  3.  
  4. for symbol_1 in range(1, n):
  5.     for symbol_2 in range(1, n):
  6.         for symbol_3 in range(97, 97 + l):
  7.             for symbol_4 in range(97, 97 + l):
  8.                 for symbol_5 in range(1, n + 1):
  9.                     if symbol_5 <= symbol_1 or symbol_5 <= symbol_2:
  10.                         continue
  11.  
  12.                     password = f'{symbol_1}{symbol_2}{chr(symbol_3)}{chr(symbol_4)}{symbol_5}'
  13.                     print(f'{password}', end=' ')
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top