Advertisement
Spocoman

Bank Number Generator

Sep 25th, 2023 (edited)
1,489
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.52 KB | None | 0 0
  1. a = int(input())
  2. b = ord(input())
  3. c = ord(input())
  4. d = ord(input())
  5. e = int(input())
  6. n = int(input())
  7.  
  8. for i in range(a, 100):
  9.     for j in range(b, ord('Z') + 1):
  10.         for k in range(c, ord('z') + 1):
  11.             for l in range(d, ord('Z') + 1):
  12.                 for m in range(e, 9, -1):
  13.                     if i % 10 == 2 and m % 10 == 5:
  14.                         n -= 1
  15.                         if n == 0:
  16.                             print(f"{i}{chr(j)}{chr(k)}{chr(l)}{m}")
  17.                             exit(0)
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement