BbJLeB

06. Safe Passwords Generator

Jun 9th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.38 KB | None | 0 0
  1. # 06. Safe Passwords Generator
  2.  
  3. a = int(input())
  4. b = int(input())
  5. max_counter = int(input())
  6.  
  7. A = 35
  8. B = 64
  9.  
  10. for x in range(1, a + 1):
  11.     if max_counter == 0:
  12.         break
  13.     for y in range(1, b + 1):
  14.         if max_counter == 0:
  15.             break
  16.         if A > 55:
  17.             A = 35
  18.         if B > 96:
  19.             B = 64
  20.         print(f"{chr(A)}{chr(B)}{x}{y}{chr(B)}{chr(A)}", end="|")
  21.         A += 1
  22.         B += 1
  23.         max_counter -= 1
Add Comment
Please, Sign In to add comment