YM coding
###State list
states = ["Alabama", "Alaska", "Arizona", "Arkansas", "California",
"Colorado", "Connecticut", "Delaware", "Florida", "Georgia", "Hawaii", "Idaho", "Illinois", "Indiana", "Iowa", "Kansas", "Kentucky", "Louisiana", "Maine", "Maryland", "Massachusetts", "Michigan", "Minnesota", "Mississippi", "Missouri", "Montana", "Nebraska",
"Nevada", "New Hampshire", "New Jersey", "New Mexico", "New York", "North Carolina", "North Dakota", "Ohio", "Oklahoma", "Oregon", "Pennsylvania", "Rhode Island", "South Carolina", "South Dakota", "Tennessee",
"Texas", "Utah", "Vermont", "Virginia", "Washington", "West Virginia", "Wisconsin", "Wyoming"]
###State letter dictionary
code_dict = {" ":0, "a":1, "b":2, "c":3, "d":4, "e":5, "f":6, "g":7, "h":8, "i":9, "j":10, "k":11, "l":12, "m":13, "n":14, "o":15, "p":16, "q":17, "r":18, "s":19, "t":20, "u":21, "v":22, "w":23, "x":24, "y":25, "z":26, "A":1, "B":2, "C":3, "D":4, "E":5, "F":6, "G":7, "H":8, "I":9, "J":10, "K":11, "L":12, "M":13, "N":14, "O":15, "P":16, "Q":17, "R":18, "S":19, "T":20, "U":21, "V":22, "W":23, "X":24, "Y":25, "Z":26}
####Secret message
"8 0# 0 14!%<43 %$ %5 6%3, 0$3 74 70 0 >%)@ 5%) #4 +% 3%. >8+7 0!! #; 740)+, #867+, #8$3, 0$3 +)4$6+7, 8 >8!! !%<4 6%3, @44& #; 2%<4$0$+, 0$3 -4 78 &)84*+7%%3 +% 4)<4 %+74), 1468$$8$6 8$ #; %>$ 7%#4. 0* 8 +)8<4 +% 4)<4, 4/4)284 508+7, )4&4$+, 0$3 8#&)%<4 4027 30;, 8 >8!! (-0!85; +% )4248<4 +4#&!4 1!4**8$6 0$3 +74 4$3-)8$6 9%; %5 +74 6%&4!. 8 >8!! &)4&0)4 +% 142%#4 0 38!864$+ #8**8%$0);, !%;0! 7-10$3, 0$3 !%<8$6 50+74) 1; 148$6 0 +)-4 3828&!4 %5 94-* 27)8*+. 8 >8!! 74!& &)4&0)4 +74 >%)!3 5%) +74 0<8%)' )4+-)$ 1; 8$<8+8$6 0!! +% 2%#4 -$+% 27)8*+ 0$3 )4248<4 +74 1!4**8$6* %5 78* 0+%$4#4$+."
####Encode Dictionary
encode_dict = {"a":"0", "b":"1", "c":"2", "d":"3", "e":"4","f":"5", "g":"6", "h":"7", "i":"8", "j":"9", "k":"@", "l":"!", "m":"#", "n":"$", "o":"%", "p":"&","q":"(", "r":")", "s":"", "t":"+", "u":"-", "v":"<", "w":">", "x":"/", "y":";", "z":"=", "A":"0","B":"1", "C":"2", "D":"3", "E":"4", "F":"5", "G":"6", "H":"7", "I":"8", "J":"9", "K":"@", "L":"!","M":"#", "N":"$", "O":"%", "P":"&", "Q":"(","R":")", "S":"", "T":"+", "U":"-", "V":"<", "W":">", "X":"/", "Y":";", "Z":"="," ":" ",",":",",".":".","'":"'"}
#####Decode Dictionary
decode_dict = {"0":"a", "1":"b", "2":"c", "3":"d", "4":"e","5":"f", "6":"g", "7":"h", "8":"i", "9":"j", "@":"k", "!":"l", "#":"m", "$":"n", "%":"o", "&":"p","(":"q", ")":"r", "*":"s", "+":"t", "-":"u", "<":"v", ">":"w", "/":"x", ";":"y", "=":"z"," ":" ",",":",",".":".","'":"'"}
Comments
Post a Comment