sibinasto

12.05. Password Generator

Dec 8th, 2020
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.45 KB | None | 0 0
  1. first_number = int(input())
  2. second_number = int(input())
  3. for first in range(1, first_number + 1):
  4.     for second in range(1, first_number + 1):
  5.         for third in range(97, 97 + second_number):
  6.             for fourth in range(97, 97 + second_number):
  7.                 for fifth in range(1, first_number + 1):
  8.                     if fifth > first and fifth > second:
  9.                         print(f'{first}{second}{chr(third)}{chr(fourth)}{fifth}', end=" ")
Advertisement
Add Comment
Please, Sign In to add comment