Advertisement
bl00dt3ars

05. Password Generator

Nov 7th, 2020 (edited)
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.43 KB | None | 0 0
  1. n = int(input())
  2. L = int(input())
  3.  
  4. for first_char in range(1, n + 1):
  5.     for second_char in range(1, n + 1):
  6.         for thirth_char in range(97, 97 + L):
  7.             for forth_char in range(97, 97 + L):
  8.                 for fifth_char in range(1, n + 1):
  9.                     if first_char < fifth_char > second_char:
  10.                         print(f"{first_char}{second_char}{chr(thirth_char)}{chr(forth_char)}{fifth_char}", end = " ")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement