Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys
- a = int(input())
- b = int(input())
- amount_password = int(input())
- counter = 0
- counter_x1 = 57
- counter_x2 = 98
- print_x1 = 35
- print_x2 = 64
- for x1 in range(35, counter_x1+1):
- for x2 in range(64, counter_x2+1):
- for num1 in range(1, a + 1):
- for num2 in range(1, b + 1):
- if print_x1 == 56:
- print_x1 = 35
- if print_x2 == 97:
- print_x2 = 64
- print(f"{chr(print_x1)}{chr(print_x2)}{num1}{num2}{chr(print_x2)}{chr(print_x1)}|", end='')
- counter_x1 += 1
- counter_x2 += 1
- print_x1 += 1
- print_x2 += 1
- counter += 1
- if amount_password == counter or (num1 == a and num2 == b):
- sys.exit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement