Advertisement
pacho_the_python

Untitled

Dec 30th, 2021
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.46 KB | None | 0 0
  1. rotor_1 = "1234"
  2. rotor_2 = "5678"
  3. rotor_3 = "90?!"
  4.  
  5.  
  6. wheel_1 = 0
  7. wheel_2 = 0
  8. wheel_3 = 0
  9. combinations = 0
  10.  
  11. letter = input()
  12.  
  13. while True:
  14.     if wheel_3 == 4:
  15.         wheel_2 += 1
  16.         wheel_3 = 0
  17.     if wheel_2 == 4:
  18.         wheel_1 += 1
  19.         wheel_3 = 0
  20.         wheel_2 = 0
  21.     print(rotor_1[wheel_1] + rotor_2[wheel_2] + rotor_3[wheel_3])
  22.     wheel_3 += 1
  23.  
  24.     combinations += 1
  25.     letter = input()
  26.     if combinations == 64:
  27.         break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement