Skip to content

Commit

Permalink
[classic-cipher] Tidy code
Browse files Browse the repository at this point in the history
  • Loading branch information
sohnryang committed Aug 26, 2021
1 parent 00c643c commit 41e4fc4
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions classlc-cipher/classic-c.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
english = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z']
country = [50,64,643,112,756,724,380,682,792,764,320,840]
country = [50, 64, 643, 112, 756, 724, 380, 682, 792, 764, 320, 840]
num = 26
for i in range(0,12):
for i in range(0, 12):
str = country[i]
numb = str%num
print(english[numb], end = "")
numb = str % num
print(chr(ord("a") + numb), end="")
print("")
print("END")

0 comments on commit 41e4fc4

Please sign in to comment.